A standard Oracle 11.2.0.3 database installation comes bundled with Application Express (APEX) 3.2.1 by default. I’m going to upgrade to the latest version of APEX (currently 4.2.2) and then configure the Embedded PL/SQL Gateway (EPG), which uses the Oracle XML DB HTTP components within the database itself, so I don’t need to run a separate HTTP server.
First off, download apex_4.2.2_en.zip from the following location and copy the zip file to your database server:
http://www.oracle.com/technetwork/developer-tools/apex/downloads/index.html
Disable HTTP access and backup the existing binaries
Connect as SYS and disable the Oracle XML DB HTTP server by temporarily setting the HTTP port to zero (if it’s already zero, then it’s not enabled):
sqlplus / as sysdba SELECT dbms_xdb.gethttpport FROM dual; EXEC dbms_xdb.sethttpport(0);
Backup and move the existing APEX binaries:
mv $ORACLE_HOME/apex $ORACLE_HOME/apex.3.2.1
Unzip the APEX 4.2.2 software and change directories ready for the install:
unzip /u01/app/oracle/software/apex_4.2.2_en.zip -d $ORACLE_HOME cd $ORACLE_HOME/apex
Install APEX 4.2.2
Connect as SYS again, and create a new APEX tablespace (this is optional, but I prefer to keep things separate from t