My Oracle Support Banner

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 MARCH 28, 2019

Applies to:

Oracle Database - Enterprise Edition - Version and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A 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';


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.