Stopping/Starting ORDS - Oracle Rest Data Services:
Here in this article, I will walk you through quickly what all commands are available with ORDS (Oracle Rest Data Services) and how to use them.
Following commands are available with ords. You need to connect to Oracle Compute node of your oracle cloud service instance with root user to deal with ords utility and its commands. So, first connect to compute node as opc user and then switch to root user using "sudo -s"
[root@RAJDB121 ords]# ./ords sub-commands
{start|stop|status|restart|log}
[root@RAJDB121 opc]# ps -ef | grep ords
oracle 27869 1 1 18:07 ? 00:00:08 /u01/app/oracle/product/java/jdk1.8.0_74/bin/java -jar /u01/app/oracle/product/ords/ords.war standalone
root 28454 26571 0 18:11 pts/2 00:00:00 /bin/bash ./ords log
root 28477 28454 0 18:11 pts/2 00:00:00 tail -f /u01/app/oracle/product/ords/log/ords.log
root 28967 28957 0 18:16 pts/3 00:00:00 grep ords
[root@RAJDB121 opc]#
Navigate to ords home directory:
[root@RAJDB121 ords]# pwd
/u01/app/oracle/product/ords
Check the ords service status as oracle cloud compute node.
[root@RAJDB121 ords]# ./ords status
INFO: Obtaining Oracle REST Data Services status...
INFO: Oracle REST Data Services is already running with PID 3090
Stopping ords services.
[root@RAJDB121 ords]# ./ords stop
INFO: Stopping Oracle REST Data Services...
INFO: Oracle REST Data Services stopped
Validating if ords services have been stopped:
[root@RAJDB121 ords]# ./ords status
INFO: Obtaining Oracle REST Data Services status...
WARNING: Oracle REST Data Services is not running
Starting ords services:
[root@RAJDB121 ords]# ./ords start
INFO: Starting Oracle REST Data Services...
INFO: Oracle REST Data Services bound to ports 8080,8181 27869
INFO: Oracle REST Data Services started with PID 27869
[root@RAJDB121 ords]# ./ords status
INFO: Obtaining Oracle REST Data Services status...
INFO: Oracle REST Data Services is already running with PID 27869
[root@RAJDB121 ords]#
Check the log of ords services:
[root@RAJDB121 ords]# ./ords log
Feb 05, 2018 6:07:54 PM
SEVERE: *** Pool: |apex|rt| is not correctly configured and will be ignored ***
config.dir
2018-02-05 18:07:54.522:INFO:/ords:main: INFO: Oracle REST Data Services initialized|Oracle REST Data Services version : 3.0.9.348.07.16|Oracle REST Data Services server info: jetty/9.2.z-SNAPSHOT|
2018-02-05 18:07:54.525:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@548e7350{/ords,null,AVAILABLE,@Secured}
2018-02-05 18:07:54.527:INFO:oejsh.ContextHandler:main: Started o.e.j.s.h.ContextHandler@e25b2fe{/,null,AVAILABLE,@Secured}
2018-02-05 18:07:54.586:INFO:oejs.ServerConnector:main: Started ServerConnector@59fa1d9b{HTTP/1.1}{0.0.0.0:8080}
2018-02-05 18:07:54.732:INFO:oejs.ServerConnector:main: Started Secured@4883b407{SSL-http/1.1}{0.0.0.0:8181}
2018-02-05 18:07:54.861:INFO:oejs.Server:main: Started @16019ms
No comments:
Post a Comment