My Oracle Support Banner

ORA-31181 WHEN DBMS_XMLDOM.FREEDOCUMENT FREES INCORRECT DOMDOCUMENT OBJECT (Doc ID 1586711.1)

Last updated on AUGUST 04, 2018

Applies to:

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

Symptoms

Calling dbms_xmldom.freeDocument() out of order fails with ORA-31181.

The following code has a side effect of freeing DOC2 (rather than DOC1) so any future attempt to work with DOC2 fails with ORA-31181.




ORA-31181: PL/SQL DOM handle accesses node that is no longer available
ORA-06512: at "XDB.DBMS_XMLDOM", line 4755
ORA-06512: at "XDB.DBMS_XMLDOM", line 4773
ORA-06512: at line 15


 

Cause

To view full details, 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 a vibrant support community of peers and Oracle experts.