Adjust your component homes according to your environment:
To start all OMS 12c and other components
====================================================
#!/bin/bash
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_2
export OMS_HOME=/u01/app/middleware/oms
export AGENT_HOME=/u01/app/middleware/agent/core/12.1.0.1.0
# Start everything
$ORACLE_HOME/bin/dbstart $ORACLE_HOME
$OMS_HOME/bin/emctl start oms
$AGENT_HOME/bin/emctl start agent
$OMS_HOME/bin/emctl status oms -details
To stop all OMS 12c components
==============================================
#!/bin/bash
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_2
export OMS_HOME=/u01/app/middleware/oms
export AGENT_HOME=/u01/app/middleware/agent/core/12.1.0.1.0
# Stop everything
$OMS_HOME/bin/emctl stop oms -all
$AGENT_HOME/bin/emctl stop agent
$ORACLE_HOME/bin/dbshut $ORACLE_HOME
No comments:
Post a Comment