Integrate Apex 4.0.2 With Oracle EBS R11i Using EPG

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Integrate Apex 4.0.

2 with Oracle EBS R11i


using EPG

Version: 1.0
Author : Helmut Heidel

Content

EBS R11 and Apex with EPG.........................................................................................................1


E-Business Suite R12...................................................................................................................1
Install Apex into the EBS R11i Database (10.2.0.5.0).......................................................................2
Setup EPG (Embedded PL/SQL Gateway) Listener........................................................................2
Activate Listener & Dispatcher.................................................................................................2
Apex Login not possible. The site says: "XDB"..............................................................................3

EBS R11 and Apex with EPG


This document describes how you can integrate Apex with EBS R11i and the EPG Embedded PL/SQL
Gateway Listener.

E-Business Suite R12


The Installtion of the EBS R11 is not described here. We start on an instance, installed with 11.5.10.2

Install Apex into the EBS R11i Database (10.2.0.5.0)


The database is an upgraded DB. Initally it was a 9i DB which is now on 10.2.0.5.0.

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 ;

SQL> @apexins.sql APEX APEX TEMP /i/

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> @apxldimg.sql /u016/patches/Apex/

SQL> @apxchpwd.sql ppppwwwwdddd

SQL> @?/rdbms/admin/utlrp.sql

ALTER USER ANONYMOUS ACCOUNT UNLOCK;


ALTER USER XDB ACCOUNT UNLOCK;
ALTER USER APEX_040000 ACCOUNT UNLOCK;
ALTER USER FLOWS_FILES ACCOUNT UNLOCK;
ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK;
ALTER USER APEX_PUBLIC_USER identified by ppppwwwddd;

Copy all the images files eunder apex/images directory to $COMMON_TOP/images (new folder) on the
Application server

Setup EPG (Embedded PL/SQL Gateway) Listener

Activate Listener & Dispatcher

sqlplus / as sysdba

alter system set


LOCAL_LISTENER="(ADDRESS=(PROTOCOL=tcp)(HOST=euro15.comprendium.com)(PORT=1536))"
scope=BOTH;

alter system set DISPATCHERS="(PROTOCOL=TCP) (SERVICE=ILFSUA15XDB)" scope=BOTH;

SQL> EXEC DBMS_XDB.SETHTTPPORT(7070);

alter system register;

Try to login to apex using http://servername:7070/apex/apex

Apex Login not possible. The site says: "XDB"

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.

The error message:

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

You might also like