Apex, Tomcat, and ORDS Installation Automation Using Silent Method - Doyensys Blog
Apex, Tomcat, and ORDS Installation Automation Using Silent Method - Doyensys Blog
Introduction:
This document provides steps to easily install Apex, Tomcat, and ORDS on a Linux
system.
export APEX_SCHEMA_DEFAULT=YOUR_DEFAULT_TABLESPACE
export APEX_SCHEMA_TEMP=TEMP_TABLESPACE
export APEX_SYS_PASSWORD=YOUR_SYS_PASSWORD
export APEX_USER_PASSWORD=YOUR_USER_PASSWORD
db.hostname=localhost.localdomain
db.port=1521
db.servicename=pdb1
#db.sid=
db.username=APEX_PUBLIC_USER
db.password=ApexPassword1
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
#standalone.use.https=true
#standalone.http.port=8080
# ORDS19 Onward
#standalone.static.path=/home/oracle/apex/images
# Pre-ORDS19
#standalone.static.images=/home/oracle/apex/images
user.apex.listener.password=ApexPassword1
user.apex.restpublic.password=ApexPassword1
user.public.password=ApexPassword1
user.tablespace.default=APEX
user.tablespace.temp=TEMP
sys.user=SYS
sys.password=SysPassword1
restEnabledSql.active=false
feature.sdw=false
3.2 Source DB
source /your_environment.env
source /apex_install_params.txt
cd $APEX_HOME/apex
# Exit SQL*Plus
exit
EOF
cd $ORDS_HOME
mkdir -p $ORDS_HOME/conf
cp $ORDS_HOME/ords.war $TOMCAT_HOME/webapps
cp -R $APEX_HOME/apex/images/* $TOMCAT_HOME/webapps/i
Step 7: Change the working directory to Tomcat
cd $TOMCAT_HOME/apache-tomcat-9.0.80/bin
chmod -R 777 *
# Start Tomcat
sh startup.sh
RefDoc:
https://docs.oracle.com/en/database/oracle/apex/22.2/htmig/automating-the-
apex-installation-process.html#GUID-C18CDE2A-F730-41D5-85DC-
FA010A2CFCD4
https://oracle-base.com/articles/misc/oracle-rest-data-services-ords-configure-
multiple-databases
Conclusion:
This script automates the installation of Apex, Tomcat, and ORDS on Linux, using
predefined parameters for efficient and user-friendly setup. It simplifies the
process, referencing Oracle documentation for best practices, and ensures a
streamlined deployment with minimal manual intervention.