Poor Performance in 11gR2 When Inserting XMLTYPE (Doc ID 1396974.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Server - Enterprise Edition - Version: 11.2.0.1 and later   [Release: 11.2 and later ]
Information in this document applies to any platform.

Symptoms

A procedure creating and inserting XML into a table with an XMLType column is performing badly in 11gR2 while in 10.2 it was performing fine

....
.....
v_dequeued_dom_msg := DBMS_XMLDOM.newdomdocument(v_dequeued_message_xml);

INSERT INTO issue_reproduce_tbl VALUES (1, SYSDATE, SYSDATE, v_dequeued_message_xml ) ;

COMMIT;

END LOOP;
...
....

In 10.2 it took around one minute and in 11gR2 is taking 12min

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