加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Xmlparsing is different in 11g from 10g (文档 ID 1515401.1)

发布时间:2020-12-12 13:59:08 所属栏目:百科 来源:网络整理
导读:?? Xmlparsing is different in 11g from 10g (文档 ID 1515401.1) Applies to: Oracle Database - Enterprise Edition - Version 11.2.0.1 and later Information in this document applies to any platform. Symptoms While reading content from xml usin
??

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Information in this document applies to any platform.

Symptoms


While reading content from xml using xmlparser / xmldom which has been working fine in Oracle 10.2.0.4,once upgraded to Oracle 11.2.0.1,using the same code and xml file,it will return incorrect content from xml.

Example: For example parsing an xml file we observed that some lines are trimmed to the next line like below:

10g output: field_desc = [BEGIN]This is a sample text which gets trimmed/truncated to next line.This is a sample text which gets trimmed/truncated to next line.[END]

11g output: field_desc = [BEGIN]This is a sample text which gets trimmed/truncated to next line.This

is a sample text which gets trimmed/truncated to next line.[END]

Changes

Upgrade from 10g to 11gR2.

Cause

In 10g the xquery engine is Java based whereas in 11g,the xquery engine is C based XVM.

Solution

We can revert to using 10g parser by setting the below event:

alter system set event ="31156 trace name context forever,level 0x400" scope=spfile;

Note:The instance must be restarted for the events to take effect. This is necessary because we are specifying "scope=spfile".

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读