Opmnctl

From Oracle FAQ
(Redirected from OPMN)
Jump to: navigation, search

OPMN is Oracle Application Server's Process Monitor and Notification server. Use this utility to stop, start and get process status.

The opmnctl executable is located in the $ORACLE_HOME/opmn/bin/ directory.

Getting help[edit]

opmnctl help
opmnctl usage stopall

Process status[edit]

$ opmnctl status

Processes in Instance: oid.myhostname
-------------------+--------------------+---------+---------
ias-component      | process-type       |     pid | status
-------------------+--------------------+---------+---------
LogLoader          | logloaderd         |     N/A | Down
dcm-daemon         | dcm-daemon         |   16292 | Alive
DSA                | DSA                |     N/A | Down
HTTP_Server        | HTTP_Server        |   16123 | Alive
OID                | OID                |   15972 | Alive

Status output can be customized. Look at this example:

$ opmnctl status -noheaders -fsep ' ' -fmt %cmp%prt%pid%sta
OC4J home N/A Down
dcm-daemon dcm-daemon 13875 Alive
LogLoader logloaderd 9800 Alive 
HTTP_Server HTTP_Server 13926 Alive

Where:

  • -fsep is the field separator
  • -fmt is the output format

Start/ stop components[edit]

Some examples:

opmnctl stopall 
opmnctl startall
opmnctl startproc ias-component=OID
opmnctl startproc ias-component=HTTP_Server
opmnctl startproc ias-component=OC4J
opmnctl startproc process-type=OC4J_SECURITY
opmnctl stopproc application=FOO