Friday, February 25, 2011

opmnctl Commands

opmnctl

opmnctl is the supported tool for starting and stopping all components in an Oracle instance, with the exception of the Fusion Middleware Control Console. opmnctl provides a centralized way to control and monitor system components from the command line.

The opmnctl command exists in two distinct directory location paths:

* ORACLE_HOME/opmn/bin/opmnctl: The opmnctl command ORACLE_HOME/opmn/bin/opmnctl location can only be used to create an Oracle instance or a component for an Oracle instance on the local system. opmnctl commands generated from this location cannot be used to manage system processes
* ORACLE_INSTANCE/bin/opmnctl: The other opmnctl command which is located in the ORACLE_INSTANCE/bin/ directory location provides a per Oracle instance instantiation of opmnctl. The opmnctl command in this location must be used for managing processes for this Oracle instance and can also be used for creating components for the Oracle instance.


opmnctl Command Quick Reference

opmnctl help

usage: opmnctl [verbose] [] []

verbose: print detailed execution message if available

Permitted // 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
[] startproc [= ..] - Start opmn managed processes
[] restartproc [= ..] - Restart opmn managed processes
[] stopproc [= ..] - Stop opmn managed processes
[] reload - Trigger opmn to reread opmn.xml
[] status [] - Get managed process status
[] metric [= ..] - Get DMS metrics for managed processes
[] dmsdump [] - Get DMS metrics for opmn
[] debug [= ..] - Display opmn server debug information
[] set [= ..] - Set opmn log parameters
[] query [=] - Query opmn log parameters
launch [= ..] - Launch a configured target process
phantom [= ..] - Register phantom processes
ping [] - Ping local opmn
validate [] - Validate the given opmn xml file
help - Print brief usage description
usage [] - Print detailed usage description
createinstance - Create an Oracle Instance
createcomponent - Create a specified component
deleteinstance - Delete an instance and components
deletecomponent - Delete a specified component
registerinstance - Register with admin server
unregisterinstance - Unregister with admin server
updateinstanceregistration - Update instance registration
updatecomponentregistration - Update component registration




Ref- http://download.oracle.com/docs/cd/E12839_01/doc.1111/e14007/opmnctl.htm

1 comment:

  1. Hi Santosh here
    Please find that i want to deploy war file
    through command prompt .
    So kindly give me the command and advice for the
    same .

    Kind regards
    Santosh kumar

    ReplyDelete