RAC停机重启方案


停机维护前,数据都expdp/impdp备用机

1 先停RAC数据库,然后关数据库服务器,最后关存储
2 先开存储,在开数据库服务器,开启数据库


一:关rac
1. Ensure that you are logged in as the oracle Linux/ UNIX user.
su - oracle
$ emctl status dbconsole

2. Stop/ shut (stop) down all applications using the Oracle database.
export ORACLE_UNQNAME=mxloan  (export ORACLE_UNQNAME=GlobalUniqueName  (database SID and not instance SID))
$ emctl stop dbconsole 

3. Shut down (stop) all Oracle RAC instances on all nodes.
$ORACLE_HOME/bin/srvctl stop database -d mxloan     (-d 数据库名 this command is stoping all the instances)

4. Shut down (stop) all Oracle ASM instances on all nodes. (If you are not using the ASM you must skip this step.)
$ORACLE_HOME/bin/srvctl stop asm -n mxloan1   (-n 节点名)
$ORACLE_HOME/bin/srvctl stop asm -n mxloan2

5. Stop (shut down) the Oracle cluster stack
su - root
cd $CRS_HOME/bin
# ./crsctl stop crs              (must be run on each node)
./srvctl stop nodeapps -n node_name  --&gt in 11.2 stops only ONS and eONS because of some dependencies.

开机:
1  
su - root
su - root
cd $CRS_HOME/bin
# ./crsctl start crs              (must be run on each node)
su - oracle
$ORACLE_HOME/bin/srvctl start asm -n mxloan1
$ORACLE_HOME/bin/srvctl start asm -n mxloan2
4
$ srvctl start database -d mxloan   (srvctl  from ORACLE_HOME)     (this command is starting all the instances)
5
$ emctl start dbconsole

-------------------------------------------------
其他启停版本
总结 
停止RAC: 先停库(实例),然后ASM ,最后apps
                emctl stop dbconsole
                srvctl stop instance -d rac -i rac1  
                srvctl stop instance -d rac -i rac2
                srvctl stop asm -n rac1
                srvctl stop asm -n rac2
                srvctl stop nodeapps -n rac1
                srvctl stop nodeapps -n rac2
启动RAC:     
                和上面的步骤正好相反即
                srvctl start nodeapps -n rac1
                srvctl start nodeapps -n rac2
                srvctl start asm -n rac1
                srvctl start asm -n rac2
                srvctl start instance -d rac -i rac2
                srvctl start instance -d rac -i rac1
                emctl start dbconsole 

milipp启停版本(10g)
$crs_stat stop/start z 启停资源
$./crs_stop -all --停止集群所有资源 或单个资源 
$./crs_start -all --开启集群所有资源  或单个资源 


本节点关闭crs服务 需要root用户身份
#/app/oracle/product/10.0.2.1/crs/bin/crsctl stop crs
#/etc/init.d/init.crs  stop/start 启停资源



============================================
重启后服务
服务端
service tgtd start
service iscsid start
service iscsi start
tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
iscsiadm -m discovery -t sendtargets -p 192.168.0.253 -l

客户端
service iscsi start
iscsiadm -m discovery -t sendtargets -p 192.168.0.253 -l 

stu253 & stu15 :
fdisk -l
partprobe
start_udev
ll /dev/raw/
raw -qa

服务端重启ntp服务:
service ntpd status

重启 iscsi 和多路径服务





来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28916011/viewspace-1580129/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/28916011/viewspace-1580129/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值