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 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".




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值