ONS (Oracle notification service)
ONS--A publish and subscribe service for communicating Fast Application Notification (FAN) events. Mainly used for connecting middleware and databases.
Ps-ef | grep ons
Crs_stat-t
Name Type Target State Host
------------------------------------------------------------
Ora. orcl1.ons application ONLINE OFFLINE
Crs_start ora. orcl1.ons
ONS log: $ GRID_HOME/opmn/logs/ons. log .*
ONS config: $ GRID_HOME/opmn/conf/ons. config
Grep port $ GRID_HOME/opmn/conf/ons. config
Localport = 6100 # line added by Agent
Remoteport = 6200 # line added by Agent
Lsof | greenp 6200 | grep LISTEN
Netstat-an | grep 6200 | grep LISTEN
If the process has a daemon, kill the parent process first.
Srvctl status nodeapps
Crs_stat-ls
Onsctl
Usage: onsctl [verbose] <command> [<options>]
The verbose option enables debug tracing and logging (for the server start ).
Permitted <command>/<options> combinations are:
Command options
----------------
Start-Start ons
Shutdown-Shutdown ons
Reload-Trigger ons to reread its configuration file
Debug [<attr >=< val>...]-Display ons server debug information
Set [<attr >=< val>...]-Set ons log parameters
Query [<attr >=< val>]-Query ons log parameters
Ping [<max-retry>]-Ping local ons
Help-Print brief usage description (this)
Usage [<command>]-Print detailed usage description