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: and later   [Release: 11.2 and later ]
Information in this document applies to any platform.


On, 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, 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';


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