2ND Update XML Command With AppendchildXml Raises ORA-600 [QMXFINDXOBPARENT] (Doc ID 1328152.1)

Last updated on FEBRUARY 08, 2017

Applies to:

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

Symptoms


=== ODM Issue Clarification ===
When running the update xml command a second time error ora-600 is raised:

ORA-00600: internal error code, arguments: [qmxFindXobParent], [], [], [], [], [], [], []

> INSERT INTO myl_testupdate
 VALUES (XMLType('<Roster xsi:schemaLocation="" xmlns="http://test/2010/11/11" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><rosternumber>1</rosternumber></Roster>'));
 2
1 row created.

SQL> UPDATE myl_testupdate SET OBJECT_VALUE = appendChildXML(OBJECT_VALUE, '/Roster', XMLType('<employee xsi:type="PermanentEmp" xmlns="http://test/2010/11/11" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><EmpNo>001</EmpNo><EmpName>Adam</EmpName><Sal>2000.00</Sal><EmpCode>0</EmpCode><PayCode>1</PayCode></employee>') )
 2    WHERE existsNode(OBJECT_VALUE, '/Roster[rosternumber="1"]') = 1;

1 row updated.



SQL> UPDATE myl_testupdate SET OBJECT_VALUE = appendChildXML(OBJECT_VALUE, '/Roster', XMLType('<employee xsi:type="PermanentEmp" xmlns="http://test/2010/11/11" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><EmpNo>001</EmpNo><EmpName>Adam</EmpName><Sal>2000.00</Sal><EmpCode>0</EmpCode><PayCode>1</PayCode></employee>') )
2 WHERE existsNode(OBJECT_VALUE, '/Roster[rosternumber="1"]') = 1;
UPDATE myl_testupdate SET OBJECT_VALUE = appendChildXML(OBJECT_VALUE, '/Roster', XMLType('<employee xsi:type="PermanentEmp" xmlns="http://test/2010/11/11" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><EmpNo>001</EmpNo><EmpName>Adam</EmpName><Sal>2000.00</Sal><EmpCode>0</EmpCode><PayCode>1</PayCode></employee>') )
*
ERROR at line 1:
ORA-00600: internal error code, arguments: [qmxFindXobParent], [], [], [], [],
[], [], []

Cause

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