Professional Documents
Culture Documents
Integrate Apex 4.0.2 With Oracle EBS R11i Using EPG
Integrate Apex 4.0.2 With Oracle EBS R11i Using EPG
Integrate Apex 4.0.2 With Oracle EBS R11i Using EPG
Version: 1.0
Author : Helmut Heidel
Content
sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Mon Jul 18 09:45:22 2011
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
CREATE TABLESPACE APEX DATAFILE '/u009/oracle/ilfsproddata/APEX01.DBF '
SIZE 500M AUTOEXTEND ON MAXSIZE 4G ;
20110719_Apex_4.0_with_EBS_R11i_and_EPG_Listener_on_euro15_OK
Helmut Heidel Page 1 2. Sep. 2020
[...]
...Begin key object existence check 10:53:48
...Completed key object existence check 10:53:48
...Setting DBMS Registry 10:53:48
...Setting DBMS Registry Complete 10:53:48
...Exiting validate 10:53:48
timing for: Validate Installation
Elapsed: 00:07:58.11
timing for: Development Installation
Elapsed: 00:26:31.85
not spooling currently
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> @?/rdbms/admin/utlrp.sql
Copy all the images files eunder apex/images directory to $COMMON_TOP/images (new folder) on the
Application server
sqlplus / as sysdba
Sometimes there is still a problem to access INTERNAL Workspace after activating the EPG (Embedded
PL/SQL Gateway) Listener, even after unlocking all relevant users.
A username and password are being requested by http://:7070. The site says: "XDB"
Following script fixed the problem for me adding the missing xml element to the DB
sqlplus / as SYSDBA
SET SERVEROUTPUT ON
20110719_Apex_4.0_with_EBS_R11i_and_EPG_Listener_on_euro15_OK
Helmut Heidel Page 2 2. Sep. 2020
DECLARE
l_cfgxml XMLTYPE;
l_value VARCHAR2(5) := 'true'; -- (true/false)
BEGIN
l_cfgxml := DBMS_XDB.cfg_get();
IF l_cfgxml.existsNode('/xdbconfig/sysconfig/protocolconfig/httpconfig/allow-repository-anonymous-
access') = 0 THEN
-- Add missing element.
SELECT insertChildXML
(
l_cfgxml,
'/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_cfgxml
FROM dual;
DBMS_OUTPUT.put_line('Element inserted.');
ELSE
-- Update existing element.
SELECT updateXML
(
DBMS_XDB.cfg_get(),
'/xdbconfig/sysconfig/protocolconfig/httpconfig/allow-repository-anonymous-access/text()',
l_value,
'xmlns="http://xmlns.oracle.com/xdb/xdbconfig.xsd"'
)
INTO l_cfgxml
FROM dual;
DBMS_OUTPUT.put_line('Element updated.');
END IF;
DBMS_XDB.cfg_update(l_cfgxml);
DBMS_XDB.cfg_refresh;
END;
/
20110719_Apex_4.0_with_EBS_R11i_and_EPG_Listener_on_euro15_OK
Helmut Heidel Page 3 2. Sep. 2020