PLS-00201: identifier 'DBMS_XMLSCHEMA.REGISTERSCHEMA' must be declared
291354Nov 20 2003 — edited Jul 14 2006Windows NT 4.0, Oracle 9.2.0.4 (interim patchset 3160576)
After upgrading to 9.2.0.4 and installing interim patchset 3160576 (apparently successfully), a developer is seeing this message when attempting to run this script to register a schema:
declare
xbfile BFILE;
xclob CLOB;
BEGIN
xbfile := bfilename('DATAHOME_FINAID','CommonRecord2.0c-VR.xsd');
DBMS_LOB.OPEN(xbfile);
DBMS_LOB.CREATETEMPORARY(xclob,TRUE,DBMS_LOB.SESSION);
DBMS_LOB.LOADFROMFILE(xclob,xbfile, DBMS_LOB.GETLENGTH(xbfile));
DBMS_LOB.CLOSE(xbfile);
dbms_xmlschema.registerSchema
(
'CommonRecord2.0c-VR.xsd',
xclob,
FALSE,TRUE,FALSE,TRUE
);
end;
/
SQL> /
dbms_xmlschema.registerSchema
*
ERROR at line 10:
ORA-06550: line 10, column 6:
PLS-00201: identifier 'DBMS_XMLSCHEMA.REGISTERSCHEMA' must be declared
ORA-06550: line 10, column 6:
PL/SQL: Statement ignored
I assume that something went awry when they upgraded and installed the patch, but I'm not a DBA and don't have a clue.
Can anyone suggest a fix?
Thanks.