Hi,
Here below are the 2 scripts for bouncing process of EM12c Server including repository services and Databases.
Slightly hardcoded for Agent/OMS Locations.
Stop12c.sh
export ORACLE_SID=em12c
. /home/oracle/em12c.env
echo ""
echo "Stopping EM Agent..."
echo ""
/e01/app/oracle/Middleware/agent/agent_inst/bin/emctl stop agent
echo ""
echo "Stopped EM Agent..."
echo ""
echo "Stopping OMS Services..."
echo ""
/e01/app/oracle/Middleware/oms/bin/emctl stop oms -all
echo ""
echo "Stopped OMS Services..."
echo ""
echo "Stopping Database Listener..."
echo ""
$ORACLE_HOME/bin/lsnrctl stop
echo ""
echo "Stopped Database Listener..."
echo ""
echo "Shuting down EM respository database..."
echo ""
sqlplus "/ as sysdba" << EOF
shutdown immediate;
exit;
echo ""
echo "EM respository database is down now..."
EOF
echo ""
echo "12c Grid Shutdown is Complete..."
echo ""
Here below are the 2 scripts for bouncing process of EM12c Server including repository services and Databases.
Slightly hardcoded for Agent/OMS Locations.
Stop12c.sh
export ORACLE_SID=em12c
. /home/oracle/em12c.env
echo ""
echo "Stopping EM Agent..."
echo ""
/e01/app/oracle/Middleware/agent/agent_inst/bin/emctl stop agent
echo ""
echo "Stopped EM Agent..."
echo ""
echo "Stopping OMS Services..."
echo ""
/e01/app/oracle/Middleware/oms/bin/emctl stop oms -all
echo ""
echo "Stopped OMS Services..."
echo ""
echo "Stopping Database Listener..."
echo ""
$ORACLE_HOME/bin/lsnrctl stop
echo ""
echo "Stopped Database Listener..."
echo ""
echo "Shuting down EM respository database..."
echo ""
sqlplus "/ as sysdba" << EOF
shutdown immediate;
exit;
echo ""
echo "EM respository database is down now..."
EOF
echo ""
echo "12c Grid Shutdown is Complete..."
echo ""
Start12c.sh
export ORACLE_SID=em12c
. /home/oracle/em12c.env
echo ""
echo "Starting EM respository database..."
echo ""
sqlplus "/ as sysdba" << EOF
startup;
exit;
echo ""
echo ""
echo "EM respository database is UP..."
EOF
echo ""
echo "Starting Database Listener..."
echo ""
$ORACLE_HOME/bin/lsnrctl start
echo ""
echo "Database Listener is UP..."
echo "Database Listener is UP..."
echo ""
echo "Starting OMS Services..."
echo ""
/e01/app/oracle/Middleware/oms/bin/emctl start oms
echo ""
echo "OMS Services are UP..."
echo "OMS Services are UP..."
echo ""
echo "Starting EM Agent..."
echo ""
/e01/app/oracle/Middleware/agent/agent_inst/bin/emctl start agent
echo ""
echo "EM Agent is UP..."
echo "EM Agent is UP..."
echo ""
echo "Grid Startup is Complete..."
echo ""
No comments:
Post a Comment