Application Express, also known as APEX, is a web-based rapid application development tool that enables developers to create scalable, secure, and reliable applications quickly. It is a free tool that comes with Oracle Database 12c, and it is a great choice for building web applications that leverage the power of Oracle Database.
In this guide, we will provide a detailed overview of the steps required to install Application Express for Oracle 12c on a Linux RedHat server. We will cover the following topics:
Before we begin the installation process, we must ensure that we meet the following prerequisites:
To begin the installation, we need to download the installation files from the Oracle website. We can obtain the installation files from the following URL: www.oracle.com/tools/downloads/apex-downloads.html
We must ensure that we download the appropriate version of Application Express for Oracle Database 12c. Once we have downloaded the installation files, we can move on to the next step.
To install Application Express for Oracle 12c on a Linux RedHat server, we need to follow the steps outlined below:
We need to extract the downloaded installation files to a directory of our choice. For example, if we downloaded the files to the /tmp directory, we can extract them by running the following command:
$ cd /tmp
$ unzip apex_21.1.zip
We need to change to the installation directory by running the following command:
$ cd apex
We need to install Application Express by running the following command:
$ sqlplus / as sysdba @apexins.sql APEX APEX_TEMP /i/
This command installs Application Express into the APEX schema and creates the necessary tables and views. It also creates the APEX_TEMP tablespace.
By default, the anonymous user account is locked. We need to unlock the account by running the following command:
$ sqlplus / as sysdba
SQL> alter user anonymous account unlock;
We need to configure the PL/SQL gateway by running the following command:
$ sqlplus / as sysdba @apex_epg_config.sql /tmp
This command configures the Oracle XML DB HTTP Server and enables the PL/SQL Gateway.
We need to set the Access Control List (ACL) by running the following command:
$ sqlplus / as sysdba @apex_rest_config.sql
This command sets the ACL for Application Express RESTful services.
After we have installed Application Express, we need to configure the environment. We can configure the environment by following the steps outlined below:
To access the Application Express Administration Console, we need to open a web browser and navigate to the following URL:
http://<hostname>:<port>/apex/apex_admin
Replace <hostname>
with the name or IP address of the Linux RedHat server and <port>
with the port number where the Oracle XML DB HTTP Server is listening. By default, the port number is 8080.
When we access the Administration Console for the first time, we need to log in using the credentials for the SYS account. We should use the following credentials:
Once we have logged in to the Administration Console, we need to create a new workspace. A workspace is a logical grouping of database objects, such as tables and views, that are used to build applications.
To create a new workspace, we need to follow these steps:
After we have created a new workspace, we need to configure its settings. We can configure the workspace settings by following these steps:
To develop applications in the new workspace, we need to create a developer account. We can create a developer account by following these steps:
After we have created a developer account, we can log in to the new workspace using the developer’s credentials. To log in to the workspace, we need to follow these steps:
http://<hostname>:<port>/apex/f?p=<app_id>:1:<session_id>::NO:::
Replace <hostname>
with the name or IP address of the Linux RedHat server, <port>
with the port number where the Oracle XML DB HTTP Server is listening, <app_id>
with the ID of the new workspace, and <session_id>
with a valid session ID.
To verify that the installation was successful, we can create a simple application and test it. We can create a new application by following these steps:
After we have created the new application, we can add a page to it and test it by following these steps:
Once we have created the page, we can test it by following these steps:
If the page is displayed correctly, then the installation was successful.
If we encounter any issues during the installation or configuration process, we can troubleshoot them by following these steps:
install_dir/logs
directory, and the configuration logs are located in the ORACLE_HOME/apex/logs
directory.In conclusion, installing Application Express for Oracle 12c on a Linux RedHat server is a straightforward process that requires careful planning and attention to detail. By following the steps outlined in this guide, we can successfully install and configure Application Express and begin building scalable, secure, and reliable web applications that leverage the power of Oracle Database. If we encounter any issues, we can refer to the troubleshooting steps outlined in this guide and consult the Oracle documentation and support resources for additional guidance.