Oracle REST Data Services (ORDS) : Installation on Tomcat (ORDS Version 22.1 Onward)
Install Oracle REST Data Services (ORDS) version 22.1 onward on Tomcat.
oracle miscconfigurationintermediate
by OracleDba
19 views
Install Oracle REST Data Services (ORDS) version 22.1 onward on Tomcat.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
conn / as sysdba
alter user sys identified by SysPassword1 account unlock;
--alter user sys identified by SysPassword1 account unlock container=all;
--alter session set container = pdb1;
alter user apex_listener identified by OraPassword1 account unlock;
alter user apex_public_user identified by OraPassword1 account unlock;
alter user apex_rest_public_user identified by OraPassword1 account unlock;
-- The next one will fail if you've never installed ORDS before. Ignore errors.
alter user ords_public_user identified by OraPassword1 account unlock;
# su - tomcat
$ mkdir /u01/ords
$ cd /u01/ords
$ unzip /tmp/ords-22.1.0.105.1723.zip
$ mkdir -p /u01/config/ords/logs
export ORDS_HOME=/u01/ords
export ORDS_CONFIG=/u01/config/ords
export ORDS_LOGS=${ORDS_CONFIG}/logs
export DB_PORT=1521
export DB_SERVICE=pdb1
export SYSDBA_USER=SYS
export SYSDBA_PASSWORD=SysPassword1
export ORDS_PASSWORD=OraPassword1
${ORDS_HOME}/bin/ords --config ${ORDS_CONFIG} install \
--log-folder ${ORDS_LOGS} \
--admin-user ${SYSDBA_USER} \
--db-hostname ${HOSTNAME} \
--db-port ${DB_PORT} \
--db-servicename ${DB_SERVICE} \
--feature-db-api true \
--feature-rest-enabled-sql true \
--feature-sdw true \
--gateway-mode proxied \
--gateway-user APEX_PUBLIC_USER \
--proxy-user \
--password-stdin <<EOF
${SYSDBA_PASSWORD}
${ORDS_PASSWORD}
EOF
conn / as sysdba
alter user sys account lock;
--alter user sys account lock container=all;
export PATH=${ORDS_HOME}/bin:$PATH1234567891011
$ mkdir $CATALINA_BASE/webapps/i/
$ cp -R /tmp/apex/images/* $CATALINA_BASE/webapps/i/
$ cd /u01/ords
$ cp ords.war $CATALINA_BASE/webapps/
export JAVA_OPTS="-Dconfig.url=${ORDS_CONFIG} -Xms1024M -Xmx1024M"
http://<server-name>:<port>/ords/
http://ol7.localdomain:8080/ords/12345
export CATALINA_OPTS="$CATALINA_OPTS -Duser.timezone=UTC"
export JAVA_OPTS="-Dconfig.url=${ORDS_CONFIG} -Xms1024M -Xmx1024M"
$CATALINA_HOME/bin/startup.sh
$CATALINA_HOME/bin/shutdown.sh12345
export ORDS_HOME=/u01/ords
export ORDS_CONFIG=/u01/config/ords
export ORDS_LOGS=${ORDS_CONFIG}/logs
${ORDS_HOME}/bin/ords --config ${ORDS_CONFIG} install repair --interactive --log-folder ${ORDS_LOGS}1234
export ORDS_HOME=/u01/ords
export ORDS_CONFIG=/u01/config/ords
${ORDS_HOME}/bin/ords --config ${ORDS_CONFIG} uninstall --interactivePlease to add comments
No comments yet. Be the first to comment!