Insert into an XMLType Column Stored as Binary XML Fails with ORA-31061 on 11.2 with Event 31156 Set to Level 2 (Doc ID 1422419.1)

Last updated on FEBRUARY 26, 2012

Applies to:

Oracle Server - Enterprise Edition - Version: 11.2.0.2 and later   [Release: 11.2 and later ]
Information in this document applies to any platform.

Symptoms

On 11.2.0.2, inserting into an XMLType column stored as binary XML fails with the following error:

ORA-31061: XDB error: XML event error
ORA-19202: Error occurred in XML processing

Setting event 31156 with level 2 or level 0x400 has no effect.


On 11.2.0.1, this insert works fine if DTD validation is disabled by setting the following event prior to the insert:

SQL> alter session set events '31156 trace name context forever, level 2';

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms