10g Grid : Start OMS /Stop OMS/Restart OMS

Posted By Sagar Patil
Oracle Process Monitor and Notification Control utility

$ opmnctl startall
$ opmnctl stopall
$ opmnctl startproc ias-component=OC4J
$ opmnctl stopproc process-type=OC4J_EM
$ opmnctl status -l

Enterprise Manager Control Utility (emctl)
$ emctl start oms
$ emctl stop oms
$ emctl status oms
$ emctl start iasconsole
$ emctl stop iasconsole
Distributed Configuration Manager Control (dcmctl)
$ dcmctl start
$ dcmctl start –ct WebCache
$ dcmctl stop
$ dcmctl getstate
$ dcmctl listcomponents

Output of Commands

$ export ORACLE_HOME=/opt/oracle/product/oms10g/
$ echo $ORACLE_HOME
/opt/oracle/product/oms10g/

$ /opt/oracle/product/oms10g/opmn/bin/opmnctl status -l

Processes in Instance: EnterpriseManager0.test
-------------------+--------------------+---------+----------+------------+----------+-----------+------
ias-component      | process-type       |     pid | status   |        uid |  memused |    uptime | ports
-------------------+--------------------+---------+----------+------------+----------+-----------+------
DSA                | DSA                |     N/A | Down     |        N/A |      N/A |       N/A | N/A
LogLoader          | logloaderd         |     N/A | Down     |        N/A |      N/A |       N/A | N/A
HTTP_Server        | HTTP_Server        |     749 | Alive    | 1325924656 |   194208 | 123:54:07 | http1:7778,http2:7200,https1:4444,https2:1159,http3:4889
dcm-daemon         | dcm-daemon         |     629 | Alive    | 1325924655 |    24956 | 123:54:39 | N/A
OC4J               | home               |   23906 | Alive    | 1325924658 |    33148 | 121:24:21 | ajp:12502,rmi:12402,jms:12602
OC4J               | OC4J_EMPROV        |   23907 | Alive    | 1325924659 |    57724 | 121:24:21 | ajp:12503,rmi:12403,jms:12603
OC4J               | OC4J_EM            |   12150 | Alive    | 1325924667 |   242044 | 1193:01:~ | ajp:12501,rmi:12401,jms:12601
WebCache           | WebCache           |   23908 | Alive    | 1325924660 |   106924 | 121:24:21 | http:7777,invalidation:9401,statistics:9402
WebCache           | WebCacheAdmin      |   23909 | Alive    | 1325924661 |    15652 | 121:24:21 | administration:9400

$ opmnctl status

Processes in Instance: EnterpriseManager0.test
-------------------+--------------------+---------+---------
ias-component      | process-type       |     pid | status
-------------------+--------------------+---------+---------
DSA                | DSA                |     N/A | Down
LogLoader          | logloaderd         |     N/A | Down
HTTP_Server        | HTTP_Server        |     749 | Alive
dcm-daemon         | dcm-daemon         |     629 | Alive
OC4J               | home               |   23906 | Alive
OC4J               | OC4J_EMPROV        |   23907 | Alive
OC4J               | OC4J_EM            |   12150 | Alive
WebCache           | WebCache           |   23908 | Alive
WebCache           | WebCacheAdmin      |   23909 | Alive

To Start and stop individual ias components use :  opmnctl startproc ias-component=OC4J (See IAS-Component Above)

To Start and stop individual processes use :  opmnctl startproc process-type=OC4J_EMPROV (See Process-Type Above)

$ /opt/oracle/product/oms10g/opmn/bin/opmnctl stopall

opmnctl: stopping opmn and all managed processes...
================================================================================
opmn id=test:6201
    5 of 6 processes stopped. ias-instance id=EnterpriseManager0.test
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--------------------------------------------------------------------------------
ias-component/process-type/process-set:
    OC4J/OC4J_EM/default_island

Error
--> Process (pid=12150)
    time out while waiting for a managed process to stop
    Log:
    /opt/oracle/product/oms10g/opmn/logs/OC4J~OC4J_EM~default_island~1
opmnctl: graceful stop of processes failed, trying forceful shutdown...

$ opmnctl status

Unable to connect to opmn.
Opmn may not be up.

$ opmnctl  startall

opmnctl: starting opmn and all managed processes...
================================================================================
opmn id=test:6201
    5 of 6 processes started.

ias-instance id=EnterpriseManager0.Test
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
--------------------------------------------------------------------------------
ias-component/process-type/process-set:
    OC4J/OC4J_EM/default_island

Error
--> Process (pid=6900)
    failed to start a managed process after the maximum retry limit
    Log:
    /opt/oracle/product/oms10g/opmn/logs/OC4J~OC4J_EM~default_island~1

If “opmnctl startall” fails use “ias-component” and “process-type” to start individual components

$ opmnctl startproc ias-component=OC4J

opmnctl: starting opmn managed processes...
================================================================================
opmn id=Test:6201
    0 of 1 processes started.

ias-instance id=EnterpriseManager0.Test
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ias-component/process-type/process-set:
    OC4J/OC4J_EM/default_island

Error
--> Process (pid=20563)
    failed to start a managed process after the maximum retry limit
    Log:
    /opt/oracle/product/oms10g/opmn/logs/OC4J~OC4J_EM~default_island~1

$ opmnctl status

Processes in Instance: EnterpriseManager0.Test
-------------------+--------------------+---------+---------
ias-component      | process-type       |     pid | status
-------------------+--------------------+---------+---------
DSA                | DSA                |     N/A | Down
LogLoader          | logloaderd         |     N/A | Down
HTTP_Server        | HTTP_Server        |    4750 | Alive
dcm-daemon         | dcm-daemon         |     N/A | Down
OC4J               | home               |    4752 | Alive
OC4J               | OC4J_EMPROV        |    4751 | Alive
OC4J               | OC4J_EM            |     N/A | Down
WebCache           | WebCache           |    4754 | Alive
WebCache           | WebCacheAdmin      |    4755 | Alive
In this case both options “ias-component” and “process-type”  failed to start OMS. We were not inclined to restart database but there were rogue processes and at the end we had to restart database to get OMS working.
$ /opt/oracle/product/oms10g/opmn/bin/opmnctl status
Processes in Instance: EnterpriseManager0.o2hp127
-------------------+--------------------+---------+---------
ias-component      | process-type       |     pid | status
-------------------+--------------------+---------+---------
DSA                | DSA                |     N/A | Down
LogLoader          | logloaderd         |     N/A | Down
HTTP_Server        | HTTP_Server        |   27225 | Alive
dcm-daemon         | dcm-daemon         |     N/A | Down
OC4J               | home               |   27230 | Alive
OC4J               | OC4J_EMPROV        |   27226 | Alive
OC4J               | OC4J_EM            |   27227 | Alive
WebCache           | WebCache           |   27228 | Alive
WebCache           | WebCacheAdmin      |   27229 | Alive

Leave a Reply

You must be logged in to post a comment.

Top of Page

Top menu