Oracle Enterprise Manager Cloud Control 13c 启动停止步骤
启动顺序:
数据库->
侦听->OMS->agent
关闭顺序与启动顺序正好相反。
$
start_em13c.sh
-
#!/bin/bash
-
export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
-
$ORACLE_HOME/bin/lsnrctl start
-
$ORACLE_HOME/bin/sqlplus / as sysdba <<EOF
-
startup
-
alter system register;
-
exit
-
EOF
-
-
export OMS_HOME=/u01/app/em13c
-
$OMS_HOME/bin/emctl start oms
-
-
/u01/app/emagent/agent_13.1.0.0.0/bin/emctl start agent
$
stop_em13c.sh
-
#!/bin/bash
-
/u01/app/emagent/agent_13.1.0.0.0/bin/emctl stop agent
-
-
export OMS_HOME=/u01/app/em13c
-
$OMS_HOME/bin/emctl stop oms -all
-
-
export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
-
$ORACLE_HOME/bin/lsnrctl stop
-
$ORACLE_HOME/bin/sqlplus / as sysdba <<EOF
-
alter system switch logfile;
-
alter system checkpoint;
-
shutdown immediate
-
exit
-
EOF
阅读(3267) | 评论(0) | 转发(0) |