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 11.1.0.7 to 11.2.0.2 [Release 11.1 to 11.2]
Information in this document applies to any platform.

Symptoms

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

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

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

Changes

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

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