Home » Oracle » Oracle Ebuisness Suite » Opmnctl command every administrator should know

Opmnctl command every administrator should know

opmnctl is widely used in iAS administration,We should know all the useful command for its administration.

Here I am talking about some Opmnctl command every administrator should know. This is valid for both 10g and 11g Version

(1) how to get the help on opmnctl

opmnctl -help
usage: /u000/oracle/TEST/product/opmn/bin/opmnctl [verbose] [<scope>] <command> [<options>]
verbose: print detailed execution message if available
Permitted <scope>/<command>/<options> combinations are:
scope command options
------- --------- ---------
start - Start opmn
startall - Start opmn & all managed processes
stopall - Stop opmn & all managed processes
shutdown - Shutdown opmn & 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 opmn xml file
config [<options>] - Modify the default opmn xml file
help - Print brief usage description
usage [<command>] - Print detailed usage description

(2) To check the status of all the components

opmnctl status

(3) To get the detailed status of all the components

opmnctl status -l

(4) To get the detailed information about execution

opmnctl verbose

(5) Command to control the opmn server

opmnctl start

It just start the opmn process.It does not start the other processes

opmnctl startall

it starts opmn and all the other processes also

opmnctl stopall

it stop opmn and all the other processes also

opmnctl shutdown

It is same as stop all but it waits for little time before forceful shutdown

opmnctl reload

if you want OPMN to reread its configuration

See also  ORA-27154 / ORA-27146

(6) To check the status across the cluster

opmnctl @cluster status

(7) Status output can be customized. Look at this example

opmnctl status -noheaders -fsep ' ' -fmt %cmp%prt%pid%sta
-fsep is the field separator
-fmt is the output format

(8) To stop individual components

opmnctl startproc ias-component=OHS
opmnctl startproc ias-component=HTTP_Server
opmnctl startproc ias-component=oacore
opmnctl startproc process-type=OC4J_SECURITY

(9) The opmnctl status -app command displays information for applications (module-ids) that are managed by OPMN.

$ opmnctl status –app

(10) To start ascontrol if it is not running

opmnctl startproc process-type=home application=ascontrol

Troubleshooting Tips

(1) Port conflict
Many times the components may not be starting because some process is already on it. You need to check for the process. if it is something which is not required, we can kill it

You can use below command to find the process using the port

lsof -i TCP:<port number>
netstat -an |grep <port number>

(2) opmnctl command not found
You need to make sure ORACLE_HOME is correctly set.
For 11g, we need to make sure ORACLE_INSTANCE is also set

Also Reads
https://docs.oracle.com/cd/E16764_01/doc.1111/e14007/opmnctl.htm
oacore services not coming up

Leave a Comment

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

Scroll to Top