blog menu1

OEM Commands

OEM Commands


DescriptionCommands
Status check
Stop Agent
Start Agent
/u01/app/oracle/product/11.1.0/agent11g/bin/emctl status agent
/u01/app/oracle/product/11.1.0/agent11g/bin/emctl stop agent
/u01/app/oracle/product/11.1.0/agent11g/bin/emctl start agent
/u01/app/oracle/product/11.1.0/agent11g/bin/emctl reload agent
/u01/app/oracle/product/11.1.0/agent11g/bin/emctl start blackout <blackoutname> [-nodelevel] [-d Duration]
-nodeLevel tells the agent to stop monitoring all targets on the server.-d Duration allows you to set a duration in the format of [days] hh:mm. ex. 1 02:05 means the blackout will last for 1 day, 2 hours and 5 minutes.
Get Home/u01/app/oracle/product/11.1.0/agent11g/bin/emctl getemhome
Memory Uses/u01/app/oracle/product/11.1.0/agent11g/bin/emctl status agent memory
List Targets/u01/app/oracle/product/11.1.0/agent11g/bin/emctl config agent listtargets
Schdular detailsemctl status agent scheduler



To stop all the Grid Control components on a host, follow these steps:
Stop the Oracle Management Service (OMS) by running the following command from the Oracle home directory of the OMS, where $ORACLE_ HOME is the Oracle home directory of the Oracle Management Service:

$ORACLE_HOME/bin/emctl stop oms
$ORACLE_HOME/bin/emctl start oms
$ORACLE_HOME/bin/emctl status oms

Stop the Application Server Control Console, which is used to manage the Oracle Application Server instance used to deploy the Management Service:

$ORACLE_HOME/bin/emctl stop iasconsole
$ORACLE_HOME/bin/emctl start iasconsole
$ORACLE_HOME/bin/emctl status iasconsole

Stop all the application server components, such as Oracle HTTP Server and OracleAS Web Cache by running the following command from the Oracle home directory of the OMS.

$ORACLE_HOME/opmn/bin/opmnctl stopall
$ORACLE_HOME/opmn/bin/opmnctl startall

$ORACLE_HOME/instances/bin/opmnctl startproc process-type=OHS


Starting Grid Control and All Its Components1. Set Home / SID
2. $ORACLE_HOME/bin/lsnrctl start
3. Start the Management Repository database instance: connect SYS as SYSDBA Startup
4. Start the Oracle Management Service: ORACLE_HOME/bin/emctl start oms
5. Run the StartWebLogic.sh script to start HTTP services for WebLogic Server:
6. Change directory to the home directory for the Oracle Management Agent and
start the Management Agent:

AGENT_HOME/bin/emctl start agent

select blackout_guid, blackout_name from mgmt_blackouts;
BLACKOUT_GUID BLACKOUT_NAME
-------------------------------- ----------------------
30E2956CA329F0E59FBDF50951F2578E alltargets-myserver

Then executed to kill the blacout

exec mgmt_diag.KillBlackout(HEXTORAW(‘30E2956CA329F0E59FBDF50951F2578E’));


Stopping Grid Control and All Its Components1. Stop the Oracle Management Service: $ORACLE_HOME/bin/emctl stop oms
2. Run the StartWebLogic.sh script to start HTTP services for WebLogic Server.
3. Change directory to the home directory for the Oracle Management Agent and
stop the Management Agent:

AGENT_HOME/bin/emctl stop agent
4. Stop Database
5. Stop listener

No comments:

Post a Comment