Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3546892
  • 博文数量: 715
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7745
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(715)

文章存档

2023年(75)

2022年(134)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

最近访客

分类: Oracle

2017-02-21 10:36:43


Oracle Enterprise Manager Cloud Control 13c 启动停止步骤
启动顺序:数据库->侦听->OMS->agent
关闭顺序与启动顺序正好相反。

$ start_em13c.sh

点击(此处)折叠或打开

  1. #!/bin/bash
  2. export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
  3. $ORACLE_HOME/bin/lsnrctl start
  4. $ORACLE_HOME/bin/sqlplus / as sysdba <<EOF
  5. startup
  6. alter system register;
  7. exit
  8. EOF

  9. export OMS_HOME=/u01/app/em13c
  10. $OMS_HOME/bin/emctl start oms

  11. /u01/app/emagent/agent_13.1.0.0.0/bin/emctl start agent

stop_em13c.sh

点击(此处)折叠或打开

  1. #!/bin/bash
  2. /u01/app/emagent/agent_13.1.0.0.0/bin/emctl stop agent

  3. export OMS_HOME=/u01/app/em13c
  4. $OMS_HOME/bin/emctl stop oms -all

  5. export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
  6. $ORACLE_HOME/bin/lsnrctl stop
  7. $ORACLE_HOME/bin/sqlplus / as sysdba <<EOF
  8. alter system switch logfile;
  9. alter system checkpoint;
  10. shutdown immediate
  11. exit
  12. EOF


阅读(3107) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~