Skip to content

Instantly share code, notes, and snippets.

@mortenbra
Last active August 29, 2015 14:23
Show Gist options
  • Save mortenbra/a3587de08bc200894a97 to your computer and use it in GitHub Desktop.
Save mortenbra/a3587de08bc200894a97 to your computer and use it in GitHub Desktop.
Install ORDS on Tomcat on CentOS
# install Oracle Rest Data Services (ORDS)
# assumes you have already downloaded ORDS from the Oracle website
# and copied the ORDS zip file to the server
# unzip the files, and move them into a dedicated directory
cd /u01/download
mkdir ords210
unzip ords.2.0.10.289.08.09.zip -d ords210
mv /u01/download/ords210 /u01/ords
# Run the ORDS configuration before deployment
cd /u01/ords
java -jar ords.war
# the ORDS configuration "wizard" will now start
# when prompted for ORDS configuration directory, enter /u01/ords/config
# then provide the necessary connection info (server, port, sid, passwords, etc)
# the values get stored in /u01/ords/config/defaults.xml and may be modified there
# IMPORTANT: "RESTful Services" is required by Apex 5,
# so enable this by specifying passwords for the APEX_LISTENER and APEX_REST_PUBLIC_USER when prompted
# for a DEV environment, open the config file and set "debug.printDebugToScreen" to "true" to get detailed errors on screen
# for a production environment, this setting should be left as "false"
# the "tomcat" user (created as part of Tomcat install) needs write access to the /config/ folder
chown -R tomcat:tomcat /u01/ords/config
# copy the .war into the webapps folder
cp ords.war /usr/share/tomcat7/latest/webapps/ords.war
# restart Tomcat to deploy the .war
service tomcat restart
# if using Tomcat standalone, copy the Apex image files to Tomcat "i" folder
# NOTE: no need to do this if using Apache as web server in front of Tomcat
# cp -r /u01/download/apex/images /usr/share/tomcat7/latest/webapps/i/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment