ORA-31181 WHEN DBMS_XMLDOM.FREEDOCUMENT FREES INCORRECT DOMDOCUMENT OBJECT
Last updated on FEBRUARY 08, 2017
Applies to:Oracle Database - Enterprise Edition - Version 220.127.116.11 and later
Information in this document applies to any platform.
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
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms