RE: Privileges for registering an XML schema
Date: Tue, 28 Aug 2012 20:43:03 +0000
We just had someone go through this and Think you need all of these
GRANT ALTER SESSION TO &&USER; GRANT CREATE SESSION TO &&USER; GRANT CREATE SYNONYM TO &&USER; GRANT CREATE TABLE TO &&USER; GRANT CREATE TYPE TO &&USER; GRANT CREATE VIEW TO &&USER; GRANT DROP ANY DIRECTORY TO &&USER; GRANT RESOURCE TO &&USER;
Hope that helps,
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Schauss, Peter (ESS) Sent: Tuesday, August 28, 2012 9:57 AM
Subject: Privileges for registering an XML schema
This is Oracle 18.104.22.168 running on AIX 5.3.
Following the example in the "Using Oracle XML DB" I run:
SCHEMAURL => 'http://local_host:8080/xdb/documentation/MY_Schema.xsd', SCHEMADOC => bfilename('XML_FILES','MY_Schema.xsd'), LOCAL => TRUE,
GENTYPES => TRUE,
GENTABLES => TRUE,
CSID => nls_charset_id('WE8ISO8859P1')); END;
ORA-31061: XDB error: DBMS_XDBZ.ENABLE_HIERARCHY ORA-06512: at "XDB.DBMS_XDBZ0", line 131 ORA-06512: at "XDB.DBMS_XDBZ0", line 588 ORA-01031: insufficient privileges ORA-06512: at "XDB.DBMS_XDBZ", line 37 ORA-06512: at line 1 ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 37 ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 65 ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 136 ORA-06512: at line 2
My user has the following privileges:
create any directory
MOS says that xdbadmin is the only privilege I need to run this stored procedure. What am I missing?
The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged.
If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please resend this communication to the sender and delete the original message or any copy of it from your computer system.
http://www.freelists.org/webpage/oracle-l Received on Tue Aug 28 2012 - 15:43:03 CDT