opmnctl Commands (10.1.3)

 

Overview

* Used to start/stop/query all OAS components.
* Located in ‘ORACLE_HOME/opmn/bin/opmnctl ‘

Syntax

opmnctl [verbose] [<scope>] <command> [<options>]

Quick Reference

prompt > opmnctl help
 
  scope      command      options
_________   __________   __________
            start                         - Start opmn
            startall                      - Start opmn and all managed processes
            stopall                       - Stop opmn and all managed processes
            shutdown                      - Shutdown opmn and all managed processes
[<scope>]   startproc   [<attr>=<val>..]  - Start opmn managed processes
[<scope>]   restartproc [<attr>=<val>..]  - Restart opmn managed processes
[<scope>]   stopproc    [<attr>=<val>..]  - Stop opmn managed processes
[<scope>]   reload                        - Trigger opmn to reread opmn.xml
[<scope>]   status      [<options>]       - Get managed process status
[<scope>]   dmsdump     [<attr>=<val>&..] - Get DMS stats
[<scope>}   set         [<attr>=<val> ..] - Set opmn log parameters
[<scope>]   query       [<attr>=<val> ..] - Query opmn log parameters
            ping        [<max_retry>]     - Ping local opmn
            validate    [<filename>]      - Validate the given xml file
            config      [<options>]       - Modify the opmn xml file
            help                          - Print brief usage description
            usage       [<command>]       - Print detailed usage description

Examples

# start all
opmnctl startall
 
# stop all
opmnctl stopall
 
# status
opmnctl status
opmnctl status -l
 
# start oc4j_soa instance
/opt/oracle/oas/opmn/bin/opmnctl @instance:oas.my.com startproc ias-component=default_group process-type=oc4j_soa
 
# stop oc4j_soa instance
/opt/oracle/oas/opmn/bin/opmnctl @instance:oas.my.com stopproc ias-component=default_group process-type=oc4j_soa
 
# restart oc4j_soa instance
/opt/oracle/oas/opmn/bin/opmnctl @instance:oas.my.com restartproc ias-component=default_group process-type=oc4j_soa

* Manually start/stop/restart HTTP Server (OHS)

opmnctl start
opmnctl startproc ias-component=HTTP_Server
opmnctl restartproc ias-component=HTTP_Server
opmnctl stopproc ias-component=HTTP_Server
# Start
C:\product\10.1.3.1\OracleAS_2\opmn\bin>opmnctl start
opmnctl: opmn started
 
C:\product\10.1.3.1\OracleAS_2\opmn\bin>opmnctl status
 
Processes in Instance: soaas.USRES-MING-LJ2.my.com
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
ASG                              | ASG                |     N/A | Down
OC4JGroup:default_group          | OC4J:oc4j_soa      |     N/A | Down
OC4JGroup:default_group          | OC4J:home          |     N/A | Down
HTTP_Server                      | HTTP_Server        |     N/A | Down
 
 
C:\product\10.1.3.1\OracleAS_2\opmn\bin>opmnctl startproc ias-component=HTTP_Server
opmnctl: starting opmn managed processes...
 
C:\product\10.1.3.1\OracleAS_2\opmn\bin>opmnctl status
 
Processes in Instance: soaas.USRES-MING-LJ2.my.com
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
ASG                              | ASG                |     N/A | Down
OC4JGroup:default_group          | OC4J:oc4j_soa      |     N/A | Down
OC4JGroup:default_group          | OC4J:home          |     N/A | Down
HTTP_Server                      | HTTP_Server        |    9240 | Alive
 
# Restart
C:\product\10.1.3.1\OracleAS_2\opmn\bin>opmnctl restartproc ias-component=HTTP_Server
opmnctl: restarting opmn managed processes...
 
C:\product\10.1.3.1\OracleAS_2\opmn\bin>opmnctl status
 
Processes in Instance: soaas.USRES-MING-LJ2.my.com
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
ASG                              | ASG                |     N/A | Down
OC4JGroup:default_group          | OC4J:oc4j_soa      |     N/A | Down
OC4JGroup:default_group          | OC4J:home          |     N/A | Down
HTTP_Server                      | HTTP_Server        |    9240 | Alive
 
# Stop
C:\product\10.1.3.1\OracleAS_2\opmn\bin>opmnctl stopproc ias-component=HTTP_Server
opmnctl: stopping opmn managed processes...
 
C:\product\10.1.3.1\OracleAS_2\opmn\bin>opmnctl status
 
Processes in Instance: soaas.USRES-MING-LJ2.my.com
---------------------------------+--------------------+---------+---------
ias-component                    | process-type       |     pid | status
---------------------------------+--------------------+---------+---------
ASG                              | ASG                |     N/A | Down
OC4JGroup:default_group          | OC4J:oc4j_soa      |     N/A | Down
OC4JGroup:default_group          | OC4J:home          |     N/A | Down
HTTP_Server                      | HTTP_Server        |     N/A | Down

Reference

* opmnctl Commands

This entry was posted in oc4j. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

This site uses Akismet to reduce spam. Learn how your comment data is processed.