You are on page 1of 2

Oracle Apex XDB Authentication Issue :

To Stop the XDB Authentication window you have to do the following Steps : 1. 2. Log in as SYS with SYSDBA Privilege and copy the below text of code and paste it in the Command Prompt or Editor and Execute it. You must have the Success execution ( The procedure completed successfully..). Follow Step : A ANONYMOUS & XDB user must be unlock and should not be expired. To do so follow Step : B

Step : A
Text of Code : SQL> CONN sys/<password> AS SYSDBA SET SERVEROUTPUT ON DECLARE l_configxml XMLTYPE; l_value VARCHAR2(5) := 'true'; -- (true/false) BEGIN l_configxml := DBMS_XDB.cfg_get(); IF l_configxml.existsNode('/xdbconfig/sysconfig/protocolconfig/httpconfig/allowrepository-anonymous-access') = 0 THEN -- Add missing element. SELECT insertChildXML ( l_configxml, '/xdbconfig/sysconfig/protocolconfig/httpconfig', 'allow-repository-anonymous-access', XMLType('<allow-repository-anonymous-access xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd">' || l_value || '</allow-repository-anonymous-access>'), 'xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"' ) INTO l_configxml FROM dual; DBMS_OUTPUT.put_line('Element inserted.'); ELSE -- Update existing element. SELECT updateXML ( DBMS_XDB.cfg_get(), '/xdbconfig/sysconfig/protocolconfig/httpconfig/allow-repository-anonymousaccess/text()', l_value, 'xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"' ) INTO l_configxml FROM dual; DBMS_OUTPUT.put_line('Element updated.'); END IF; DBMS_XDB.cfg_update(l_configxml); DBMS_XDB.cfg_refresh; END; /

Step : B SQL > CONN SYS/<password> AS SYSDBA SQL > ALTER USER ANONYMOUS IDENTIFIED BY anonymous; SQL> ALTER USER ANONYMOUS ACCOUNT UNLOCK; SQL> ALTER USER XDB IDENTIFIED BY xdb; SQL> ALTER USER XDB ACCOUNT UNLOCK; After completing Step : A & Step : B hopefully you will be able to stop showing XDB Authentication window. -- Md. Kamal Hossain http://apexexplorer.com dbhossain@yahoo.com

You might also like