Oracle Database 11g R2 RAC启动关闭步骤
Oracle Database 11g R2 RAC启动关闭步骤
1.关闭监听
/u01/app/11.2.0/grid/bin/srvctl stop listener -n RedHat-rac01
/u01/app/11.2.0/grid/bin/srvctl stop listener -n redhat-rac02
查看某个节点的监听状态
/u01/app/11.2.0/grid/bin/srvctl status listener -n redhat-rac01
/u01/app/11.2.0/grid/bin/srvctl status listener -n redhat-rac02
2.关闭实例
/u01/app/11.2.0/grid/bin/srvctl stop database -d redtest
查看所有节点上实例运行状态
/u01/app/11.2.0/grid/bin/srvctl status database -d redtest
3.关闭asm(可以忽略不执行)
/u01/app/11.2.0/grid/bin/srvctl stop asm -n redhat-rac01
/u01/app/11.2.0/grid/bin/srvctl stop asm -n redhat-rac02
注:如果仅仅使用上面的命令去关闭asm可能会报错
/u01/app/11.2.0/grid/bin/srvctl stop diskgroup -g DATA_GROUP
/u01/app/11.2.0/grid/bin/srvctl stop diskgroup -g OCR_VOTE
查看每个节点上asm的运行状态
/u01/app/11.2.0/grid/bin/srvctl status asm -n redhat-rac01
/u01/app/11.2.0/grid/bin/srvctl status asm -n redhat-rac02
4.关闭crs
每个节点上都要执行
/u01/app/11.2.0/grid/bin/crsctl stop crs
启动:
1.启动集群服务
crsctl start crs (must be run on each node)
注:也可以使用命令crsctl start cluster -n redhat-rac01 redhat-rac02(所有)
2.启动实例
/u01/app/11.2.0/grid/bin/srvctl start database -d redtest