Wednesday, 25 November 2026

Oracle APEX, ORDS and Tomcat Installation on Oracle Linux

This document provides a step-by-step guide to installing Oracle APEX on an Oracle database running on Oracle Linux.

It covers prerequisites, setup, and configuration for APEX, ORDS, Java, and Tomcat.
The aim to simplify the installation process for easy deployment.

Prerequiste:

Apex Software (link) as you want version installation--DB Node
ORDS Software (link) as you want version installation-- App Node or as you want
Apache Tomcat 9.0.112 (Sofware) (link)--App Node or as you want
JDK8 or JDK11--App Node or as you want

Installation: (APEX installation done in database node)

After downloaded then move the above Apex file into oracle software or ORACLE_HOME.

Unzip those files into the required directories with the help of unzip utility on respective nodes.

Example:

$cd $ORACLE_HOME
$unzip -o Apex_Software.zip (same command for other zip files) 

APEX:

After Unzipping apex file, Create a tablespace only for apex in the database.

$sqlplus / as sysdba
SQL>CREATE TABLESPACE APEX DATAFILE '/app/oracle/oradata/apex01.dbf' SIZE 5G AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED; (Size as you want)

After creating the tablespace, Execute the apex installation scripts present in the apex directory.

$cd $ORACLE_HOME/apex
$sqlplus / as sysdba




The command is broken down like below,

1. apexins.sql – APEX schema name
2. APEX – Default tablespace for APEX application schemas
3. APEX  TEMP  – Apex temporary tablespace for temporary segments
4. /i/–  For ORDS, this means you must later map /i/ to APEX static files via ORDS config.
Apex has been installed and Configure the database apex restful services by running the script in the apex directory.

After execution, It asks for apex listener and apex_rest_public_user passwords.

After the execution, change the apex users APEX_LISTENER and APEX_PUBLIC_USER in the database level and set the password.





Then, set the port number as 0 as we need to set the default port 8080 while using PLSQL gateway.




And also set SYS user password for these.

$sqlplus / as sysdba
SQL>ALTER USER SYS IDENTIFIED BY "oracle";
SQL>exit
$ $ORACLE_HOME/bin/orapwd FILE=$ORACLE_HOME/dbs/orapw$ORACLE_SID PASSWORD='oracle' ENTRIES=10

JAVA and TOMCAT INSTALLATION:
(These steps done as per your requirement you want database or application node)
I have done these steps in application node because i have separate node for both database and application.

After unzipping the java and tomcat zip files, Create the tomcat environment file.
$ cat tomcat.env
export JAVA_HOME=/apps/oracle/DEV/apache/jdk1.8.0_202
export CATALINA_HOME=/apps/oracle/DEV/apache/apache-tomcat-9.0.112
export CATALINA_BASE=$CATALINA_HOME
export TOMCAT_SCRIPT_HOME=$CATALINA_HOME/bin

After creating the tomcat environment file, navigate to $CATALINA_HOME/bin and then start the tomcat using sh startup.sh script.

$ cd $TOMCAT_SCRIPT_HOME
$ ll
$sh startup.sh or $ ./startup.sh

To open the tomcat front end page, use this default link to view,

http://hostname.domain.in:8080


After the successful installation, The above page can be opened without any errors.

Then, we need to add an tomcat user entry in the xml file.Navigate to /apps/oracle/DEV/apache/apache-tomcat-9.0.112/conf and we can find the file called tomcat-users.xml .

Open the file and add the entries at the line 55th line,

<role rolename=''manager-gui'' />
<user username="oracle'' password=''oracle'' roles=”manager-gui'' />

ORDS Configuration: 

$ mkdir -p /apps/oracle/DEV/ords
$ unzip -o ORDS_Software.zip

After unzipping the ords zip file, create a directory called conf directory will be created inside ords.

$ mkdir -p /apps/oracle/DEV/ords/conf

Then, we need to add the database name and domain entries into the ords_params.properties file. this file will be located inside the params folder.

We need to add the hostname, port, service name and the SID in the ords_params.properties file.

Enter the following in the ords_params.properties file,

db.hostname=erpdevdb.domain.in
db.port=1521 --as per your db port
db.servicename=DEV
db.username=APEX_PUBLIC_USER
migrate.apex.rest=false
plsql.gateway.add=true
rest.services.apex.add=true
rest.services.ords.add=true
schema.tablespace.default=APEX
schema.tablespace.temp=TEMP
standalone.mode=false
user.tablespace.default=APEX
user.tablespace.temp=TEMP
sys.user=SYS
sys.password=oracle

After params file configuration, then move on to apex.war file creation by navigating to /apps/oracle/DEV/ords where we can find the ords.war file.

Take a backup of ords war file. then, rename the ords.war to apex.war.

Now, set the oracle REST database service ORDS configuration directory by using the below command (single line command inside the ords directory).

[applmgr@erpdevappl ~]$ cd /apps/oracle/DEV/ords
[applmgr@erpdevappl ords]$ $JAVA_HOME/bin/java -jar apex.war configdir /apps/oracle/DEV/ords/conf
2026-11-04T10:18:54.082Z INFO        Set config.dir to /apps/oracle/DEV/ords/conf in: /apps/oracle/DEV/ords/apex.war


ORDS Installation:

To install ORDS use the single line command used to run in the ORDS directory,

[applmgr@erpdevappl ords]$ $JAVA_HOME/bin/java -jar apex.war install advanced
Specify the database connection type to use.
Enter number for [1] Basic  [2] TNS  [3] Custom URL [1]:
Enter the name of the database server [erpdevdb.domain.in]:
Enter the database listen port [1521]:
Enter 1 to specify the database service name, or 2 to specify the database SID [1]:
Enter the database service name [DEV]:
Enter 1 if you want to verify/install Oracle REST Data Services schema or 2 to skip this step [1]:2
Enter 1 if you want to use PL/SQL Gateway or 2 to skip this step.
If using Oracle Application Express or migrating from mod_plsql then you must enter 1 [1]:
Enter the PL/SQL Gateway database user name [APEX_PUBLIC_USER]:
Enter the database password for APEX_PUBLIC_USER:
Confirm password:
Enter 1 to specify passwords for Application Express RESTful Services database users (APEX_LISTENER, APEX_REST_PUBLIC_USER) or 2 to skip this step [1]:2
Enter a number to select a feature to enable:
   [1] SQL Developer Web  (Enables all features)
   [2] REST Enabled SQL
   [3] Database API
   [4] REST Enabled SQL and Database API
   [5] None
Choose [1]:5
2026-11-04T10:25:21.355Z INFO        reloaded pools: []
Enter 1 if you wish to start in standalone mode or 2 to exit [1]:2
[applmgr@erpdevappl ords]$

After this command, below steps will be done and we need to give the required information to it.

Then, Create a Image directory and copy the oracle application express images.

Create a directory i inside the $CATALINA_HOME/webapps folder

Now, copy the oracle application express images into the webapps i folder

Then, copy the apex.war file from ORDS to the webapps folder

Finally, Bounce the tomcat and check apex front end is opening or not,

$ cd $TOMCAT_SCRIPT_HOME
$ ll
$sh shutdown.sh or $ ./shutdown.sh
$sh startup.sh or $ ./startup.sh

Finally, Apex has been running. http://erpdevappl.domain.in:8080/apex

Tuesday, 13 October 2026

FRM-92101: there was failure in the forms server during startup. this could happen due to invalid configuration. please look into the web-server log file for details.

FRM-92101: There was a failure in the Forms Server during startup. This could happen due to invalid configuration

Please look into the web-server log file for details

Details…
Java Exception
oracle.forms.net.ConnectionException:Forms sessionfailed during startup:no response from runtime process
at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
at oracle.forms.net.HTTPNStream.getResponse(Unknown source)
at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
at oracle.forms.net.HTTPNStream.flush(Unknown Source)
at java.io.DataOutputStream.flush(Unknown source)

As I looked into the forms log file given below:

$LOG_HOME/ora/10.1.3/opmn/forms_default_group_1/formsstd.out



SOLUTION

The issue is with the openmotif package which install in Linux.

Note: If already install then unInstall the openmotif package and reInstall it.

Install the below RPM & then stop and start the forms service:
openmotif21–2.1.30–11.el7

You can download the above RPM in the below link:
http://oss.oracle.com/projects/compat-oracle/files/Enterprise_Linux/

[root@erptestappl~]# yum install openmotif21-2.1.30-11.el7
Loaded plugins: langpacks, ulninfo
Resolving Dependencies
--> Running transaction check
---> Package openmotif21.i686 0:2.1.30-11.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================================================================
 Package                          Arch                      Version                              Repository                       Size
=======================================================================================================================================
Installing:
 openmotif21                      i686                      2.1.30-11.el7                        ol7_addons                      1.0 M
Transaction Summary
=======================================================================================================================================
Install  1 Package
Total download size: 1.0 M
Installed size: 2.6 M
Is this ok [y/d/N]: y
Downloading packages:
openmotif21-2.1.30-11.el7.i686.rpm                                                                              | 1.0 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : openmotif21-2.1.30-11.el7.i686                                                                                      1/1 
  Verifying  : openmotif21-2.1.30-11.el7.i686                                                                                      1/1 
Installed:
  openmotif21.i686 0:2.1.30-11.el7                                                                                                     
Complete!

after installing openmotif21-2.1.30-11.el7

now the application is up and running successfully.