有关RAC下数据库的启用和关闭命令,写下来留着备用
1.12 关闭和启动RAC
启动RAC
1、启动CRS资源
[root@rac1 ~]# crsctl start resources
Starting resources.
Successfully started CRS resources
示例15-47
2、启动两个节点实例
[root@rac1 ~]# srvctl start nodeapps -n rac1
[root@rac1 ~]# srvctl start nodeapps -n rac2
示例15-48
3、启动ASM实例
[root@rac1 ~]# srvctl start asm -n rac1
[root@rac1 ~]# srvctl start asm -n rac2
示例15-49
4、启动数据库
[root@rac1 ~]# srvctl start database -d devdb
[root@rac1 ~]# srvctl start service -d devdb -s devdb
示例15-50
关闭RAC(与启动相反)
1、关闭数据库
[root@rac1 ~]# srvctl stop service -d devdb -s devdb
[root@rac1 ~]# srvctl stop database -d devdb
示例15-51
2、关闭ASM实例
[root@rac1 ~]# srvctl stop asm -n rac1
[root@rac1 ~]# srvctl stop asm -n rac2
示例15-52
3、关闭两个实例
[root@rac1 ~]# srvctl stop nodeapps -n rac1
[root@rac1 ~]# srvctl stop nodeapps -n rac2
示例15-53