ORA-31154 Invalid XML Document ORA-31001 Invalid Resource Handle xsguest.xml and XDB Invalid After Upgrade To 11GR2 (Doc ID 1050816.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.1.0 and later
Information in this document applies to any platform.
Checked as Top Hit on 09-NOV-2011
Checked for relevance on 29-Oct-2013


Symptoms


During upgrade from 11.1.0.6.0 to 11.2.0.1.0
We get this error in the upgrade log:
(This is the first error of a series of similar errors)

SQL> -- Copy data back to xs$principals table
SQL> DECLARE
2 tmp boolean := false;
3
4 CURSOR c1 IS
5 select u.any_path p, u.prnc_data r
6 from upgradexs u;
7 BEGIN
8 FOR r1 IN c1 LOOP
9 tmp := dbms_xdb.createresource(r1.p, r1.r) ;
10 END LOOP;
11 END;
12 /
DECLARE
*
ERROR at line 1:
ORA-31154: invalid XML document
ORA-19202: Error occurred in XML processing
LSX-00020: unknown type "string"
ORA-06512: at "XDB.DBMS_XDB", line 201
ORA-06512: at line 9
.
.
.

begin
*
ERROR at line 1:
ORA-31001: Invalid resource handle or path name "/sys/xs/users/xsguest.xml"
ORA-06512: at "XDB.DBMS_XDB", line 355
ORA-06512: at line 2

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