Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Allow anonymous access to Oracle XML DB Repository ??

455963Dec 7 2005 — edited May 27 2011
Hello,

I've upgraded to an oracle 10g release 2 database and i'm not allowed to access the resources without authentication even if i unlock the ANONYMOUS ACCOUNT. According to the link below, with the release 2 the xdbconfig.xml configuration file has automatically upgraded so that it can have an additional element <allow-repository-anonymous-access>.

https://dpt-info.u-strasbg.fr/doc/oracle/server.102/b14238/afterup.htm

But when i try to modify the xdbconfig.xml file by inserting this element as follows :

DECLARE
configxml SYS.XMLType;
configxml2 SYS.XMLType;
BEGIN
-- Get the current configuration
configxml := DBMS_XDB.cfg_get();

-- Modify the configuration
SELECT INSERTCHILDXML(configxml,'/xdbconfig/sysconfig/protocolconfig/httpconfig', 'allow-repository-anonymous-access', XMLType('<allow-repository-anonymous-access>true</allow-repository-anonymous-access>','http://xmlns.oracle.com/xdb/xdbconfig.xsd'))
INTO configxml2 FROM DUAL;

-- Update the configuration to use the modified version
DBMS_XDB.cfg_update(configxml2);
END;
/

I got an ORA-31043 error indicating that this element is not defined in the schema xdbconfig.xsd. I've checked the schema and it doesn't define the <allow-repository-anonymous-access> element !!!!

Does anybody know what can i do in order to allow anonymous access? I'm new with Oracle XML DB, thanks for your help.

Lionel
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 24 2011
Added on Dec 7 2005
18 comments
9,800 views