Attempting to register a global XML schema as a non-privileged user, you may get the following error:
BEGIN
DBMS_XMLSCHEMA.registerSchema(
SCHEMAURL => 'http://www.acme.com/XMLSchemaURL.xsd',
SCHEMADOC => bfilename('XMLDIR','someXMLSchema.xsd'),
CSID => nls_charset_id('AL32UTF8'),
LOCAL => FALSE);
END;
ORA-31086: insufficient privileges to register schema "http://www.acme.com/XMLSchemaURL.xsd
"
when you specify the boolean value FALSE for LOCAL, you are attempting to register a global XML schema, but only privileged users like the DBA can perform this operation.
See message translations for ORA-31086 and search additional resources
1 comment:
Flavio, thanks for the post. I was using the Oracle Enterprise Manager to add some XML Schemas and I ran into that error. Thanks for saving me a lot of time.
Post a Comment