ORA-31181 WHEN DBMS_XMLDOM.FREEDOCUMENT FREES INCORRECT DOMDOCUMENT OBJECT
(Doc ID 1586711.1)
Last updated on APRIL 06, 2022
Applies to:Oracle Database - Enterprise Edition - Version 18.104.22.168 and later
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A 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
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