DBMS_SPM.LOAD_PLANS_FROM_SQLSET Getting Xml Parsing Error (Doc ID 1204524.1)

Last updated on NOVEMBER 22, 2016

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.1 to 11.2]
Information in this document applies to any platform.


You receive following error when loading plans from STS in 11g;

set serveroutput on
cnt number;
 cnt:=DBMS_SPM.LOAD_PLANS_FROM_SQLSET(sqlset_name => 'HR',sqlset_owner => 'SYS');
 dbms_output.put_line('Number of plans loaded: ' || cnt);

ERROR at line 1:
ORA-06512: at line 1
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00245: extra data after end of document
Error at line 1
ORA-06512: at "SYS.DBMS_SPM", line 2013
ORA-06512: at line 2


SQL Tuning Set (STS) was generated in 10g.
You are trying to load the STS in 11g database.


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