My Oracle Support Banner

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

Last updated on FEBRUARY 03, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.4 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 Cloud Exadata Service - Version N/A 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], [], [], [], [],
[], [], []

Changes

 

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!


In this Document
Symptoms
Changes
Cause
Solution
References


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