Oracle Application Express (Oracle APEX) is a rapid web application development tool for the Oracle database. Using only a web browser and limited programming experience, you can develop and deploy professional applications that are both fast and secure. Oracle APEX is a fully supported, no cost option of the Oracle database.
Browser Requirement:
To view or develop Oracle Application Express applications, Web browsers must
support Java Script and the HTML 4.0 and CSS 1.0 standards. The following browsers meet this requirement:
1)Microsoft Internet Explorer 6.0 or later version
2)Firefox 1.0 or later
HTTP Server Requirements:
In order to run, Oracle Application Express must have access to one of the following:
1)Embedded PL/SQL gateway
2)Oracle HTTP Server and mod_plsql
Oracle XML DB HTTP Server with the embedded PL/SQL gateway installs with
Oracle Database 11g. It provides the database with a Web server and also the necessary infrastructure to create dynamic applications.
Oracle Application Express requires the shared_pool_size of the target database to be at least 100 MB.
Disk Space Requirement:
Oracle Application Express disk space requirements are as follows:
1)Free space for Oracle Application Express software files on the file system: 450 MB
2)Free space in Oracle Application Express tablespace: 100MB
3)Free space in SYSTEM tablespace: 85 MB
Free space in Oracle Application Express tablespace for each additional language
(other than English) installed: 30MB
Although you can install APEX into an existing tablespace, I recommend creating a new tablespace.
This will hold all the APEX objects and also any files uploaded to the database.
To create a new tablespace called APEX run the following:
Installing the Oracle Application Express Software:
To install Oracle Application Express release 4.0.1:
1.Download the file apex_4.0.1.zip from the Oracle Application Express download
page. See:
http://www.oracle.com/technology/products/database/application_
express/download.html
2.Unzip apex_4.0.1.zip as follows, preserving directory names:
$ Unzip apex_4.0.1.zip
3. Change your working directory to apex.
$ cd apex
4. Start SQL*Plus and connect the database where Oracle Application Express is
installed as SYS. For example:
$ sqlplus sys/SYS_password as sysdba
Run apexins.sql passing the following five arguments in the order shown:
@apexins password tablespace_apex tablespace_files tablespace_temp images
eg: SQL>@apexins foo APEX APEX TEMP /i/
Configure Embedded PL/SQL Gateway:
To configure the embedded PL/SQL gateway:
1. Change your working directory to the directory where you
unzipped the Application Express software.
2. Start SQL*Plus and connect the database where Oracle Application Express is
installed as SYS. For example:
$ sqlplus sys/password as sysdba
$ @apex_epg_config
eg:After unzipped you have directiory structure like: /home/apex
@apex_epg_config /home
The next step is to upload the images.
Run apxldimg.sql passing the file system path to the base directory where the Oracle Application Express software was unzipped as shown in the following example:
SQL>@apxldimg.sql /home
You need to unlock few of the schema that is related to Apex application. Now unlock the schema as :
SQL> ALTER USER ANONYMOUS ACCOUNT UNLOCK;
SQL > ALTER USER XDB ACCOUNT UNLOCK;
SQL > ALTER USER APEX_040000 ACCOUNT UNLOCK;
SQL > ALTER USER FLOWS_FILES ACCOUNT UNLOCK;
SQL > ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK;
Execute the apxconf.sql script and type the below command:
SQL>@apxconf.sql
And press enter...you will be asked to assign a password for admin : type your desired password And press enter.
Then you will be asked to enter password for XDB HTTP port : type your desired port . here you can keep 8080 or can change like 7778.
You can verify the port no by using th following command:
You can start XML DB as follows:
Start SQL*Plus and connect the database where Oracle Application Express is
installed as SYS. For example:
$ sqlplus sys/SYS_password as sysdba
Enter a statement similar to the following:
eg:SQL>EXEC DBMS_XDB.SETHTTPPORT(8080);
Open a browser and type the address
eg:http://localhost:8080
You will need to log in using the workspace "internal", username "admin" and the password you specified during installation.
In case you are not able to see images and logo follow this work around:
Execute reset_image_prefix script located in utilities directory.
Change your working directory to <base directory>/apex/utilities
$ sqlplus conn sys/password as sysdba
SQL>@reset_image_prefix.sql /i/
Browser Requirement:
To view or develop Oracle Application Express applications, Web browsers must
support Java Script and the HTML 4.0 and CSS 1.0 standards. The following browsers meet this requirement:
1)Microsoft Internet Explorer 6.0 or later version
2)Firefox 1.0 or later
HTTP Server Requirements:
In order to run, Oracle Application Express must have access to one of the following:
1)Embedded PL/SQL gateway
2)Oracle HTTP Server and mod_plsql
Oracle XML DB HTTP Server with the embedded PL/SQL gateway installs with
Oracle Database 11g. It provides the database with a Web server and also the necessary infrastructure to create dynamic applications.
Oracle Application Express requires the shared_pool_size of the target database to be at least 100 MB.
Disk Space Requirement:
Oracle Application Express disk space requirements are as follows:
1)Free space for Oracle Application Express software files on the file system: 450 MB
2)Free space in Oracle Application Express tablespace: 100MB
3)Free space in SYSTEM tablespace: 85 MB
Free space in Oracle Application Express tablespace for each additional language
(other than English) installed: 30MB
Although you can install APEX into an existing tablespace, I recommend creating a new tablespace.
This will hold all the APEX objects and also any files uploaded to the database.
To create a new tablespace called APEX run the following:
CREATE TABLESPACE APEX DATAFILE "<filename and path>"
SIZE 200M
EXTENT MANAGEMENT LOCAL
SEGMENT SPACE MANAGEMENT AUTO;
Installing the Oracle Application Express Software:
To install Oracle Application Express release 4.0.1:
1.Download the file apex_4.0.1.zip from the Oracle Application Express download
page. See:
http://www.oracle.com/technology/products/database/application_
express/download.html
2.Unzip apex_4.0.1.zip as follows, preserving directory names:
$ Unzip apex_4.0.1.zip
3. Change your working directory to apex.
$ cd apex
4. Start SQL*Plus and connect the database where Oracle Application Express is
installed as SYS. For example:
$ sqlplus sys/SYS_password as sysdba
Run apexins.sql passing the following five arguments in the order shown:
@apexins password tablespace_apex tablespace_files tablespace_temp images
eg: SQL>@apexins foo APEX APEX TEMP /i/
Configure Embedded PL/SQL Gateway:
To configure the embedded PL/SQL gateway:
1. Change your working directory to the directory where you
unzipped the Application Express software.
2. Start SQL*Plus and connect the database where Oracle Application Express is
installed as SYS. For example:
$ sqlplus sys/password as sysdba
$ @apex_epg_config
eg:After unzipped you have directiory structure like: /home/apex
@apex_epg_config /home
The next step is to upload the images.
Run apxldimg.sql passing the file system path to the base directory where the Oracle Application Express software was unzipped as shown in the following example:
SQL>@apxldimg.sql /home
You need to unlock few of the schema that is related to Apex application. Now unlock the schema as :
SQL> ALTER USER ANONYMOUS ACCOUNT UNLOCK;
SQL > ALTER USER XDB ACCOUNT UNLOCK;
SQL > ALTER USER APEX_040000 ACCOUNT UNLOCK;
SQL > ALTER USER FLOWS_FILES ACCOUNT UNLOCK;
SQL > ALTER USER APEX_PUBLIC_USER ACCOUNT UNLOCK;
Execute the apxconf.sql script and type the below command:
SQL>@apxconf.sql
And press enter...you will be asked to assign a password for admin : type your desired password And press enter.
Then you will be asked to enter password for XDB HTTP port : type your desired port . here you can keep 8080 or can change like 7778.
You can verify the port no by using th following command:
SELECT DBMS_XDB.GETHTTPPORT FROM DUAL;
You can start XML DB as follows:
Start SQL*Plus and connect the database where Oracle Application Express is
installed as SYS. For example:
$ sqlplus sys/SYS_password as sysdba
Enter a statement similar to the following:
EXEC DBMS_XDB.SETHTTPPORT(port);
eg:SQL>EXEC DBMS_XDB.SETHTTPPORT(8080);
Open a browser and type the address
eg:http://localhost:8080
You will need to log in using the workspace "internal", username "admin" and the password you specified during installation.
In case you are not able to see images and logo follow this work around:
Execute reset_image_prefix script located in utilities directory.
Change your working directory to <base directory>/apex/utilities
$ sqlplus conn sys/password as sysdba
SQL>@reset_image_prefix.sql /i/