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
阅读(2983) | 评论(0) | 转发(0) |