2)以关闭ora.RACDB.RACDB1.inst资源为例 RACDB1@rac1 /home/oracle$ /oracle/app/crs/bin/crs_stop ora.RACDB.RACDB1.inst Attempting to stop `ora.RACDB.RACDB1.inst` on member `rac1` Stop of `ora.RACDB.RACDB1.inst` on member `rac1` succeeded.
4.启动特定集群资源 启动ora.RACDB.RACDB1.inst资源 RACDB1@rac1 /home/oracle$ /oracle/app/crs/bin/crs_start ora.RACDB.RACDB1.inst Attempting to start `ora.RACDB.RACDB1.inst` on member `rac1` Start of `ora.RACDB.RACDB1.inst` on member `rac1` succeeded.
5.同时停掉所有集群资源 RACDB1@rac1 /home/oracle$ /oracle/app/crs/bin/crs_stop -all Attempting to stop `ora.RACDB.taf.RACDB1.srv` on member `rac1` Attempting to stop `ora.rac1.gsd` on member `rac1` Attempting to stop `ora.RACDB.taf.cs` on member `rac1` Attempting to stop `ora.rac1.ons` on member `rac1` Attempting to stop `ora.RACDB.taf.RACDB2.srv` on member `rac2` Attempting to stop `ora.rac2.gsd` on member `rac2` Attempting to stop `ora.rac2.ons` on member `rac2` Stop of `ora.RACDB.taf.RACDB2.srv` on member `rac2` succeeded. Stop of `ora.RACDB.taf.RACDB1.srv` on member `rac1` succeeded. Attempting to stop `ora.RACDB.db` on member `rac2` Stop of `ora.rac2.gsd` on member `rac2` succeeded. Stop of `ora.rac1.gsd` on member `rac1` succeeded. Stop of `ora.rac1.ons` on member `rac1` succeeded. Stop of `ora.rac2.ons` on member `rac2` succeeded. Stop of `ora.RACDB.taf.cs` on member `rac1` succeeded. Stop of `ora.RACDB.db` on member `rac2` succeeded. `ora.RACDB.RACDB1.inst` is already OFFLINE. `ora.RACDB.RACDB2.inst` is already OFFLINE. Attempting to stop `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1` Attempting to stop `ora.rac1.ASM1.asm` on member `rac1` Attempting to stop `ora.rac2.ASM2.asm` on member `rac2` Attempting to stop `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2` Stop of `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1` succeeded. Attempting to stop `ora.rac1.vip` on member `rac1` Stop of `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2` succeeded. Attempting to stop `ora.rac2.vip` on member `rac2` Stop of `ora.rac1.vip` on member `rac1` succeeded. Stop of `ora.rac2.vip` on member `rac2` succeeded. Stop of `ora.rac2.ASM2.asm` on member `rac2` succeeded. Stop of `ora.rac1.ASM1.asm` on member `rac1` succeeded. CRS-0216: Could not stop resource 'ora.RACDB.RACDB1.inst'.
CRS-0216: Could not stop resource 'ora.RACDB.RACDB2.inst'.
6.同时启动所有集群资源 RACDB1@rac1 /home/oracle$ /oracle/app/crs/bin/crs_start -all Attempting to start `ora.rac1.vip` on member `rac1` Attempting to start `ora.rac1.ASM1.asm` on member `rac1` Attempting to start `ora.rac2.vip` on member `rac2` Attempting to start `ora.rac2.ASM2.asm` on member `rac2` Start of `ora.rac1.vip` on member `rac1` succeeded. Attempting to start `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1` Start of `ora.rac2.vip` on member `rac2` succeeded. Attempting to start `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2` Start of `ora.rac1.LISTENER_RAC1.lsnr` on member `rac1` succeeded. Start of `ora.rac2.LISTENER_RAC2.lsnr` on member `rac2` succeeded. Start of `ora.rac1.ASM1.asm` on member `rac1` succeeded. Attempting to start `ora.RACDB.RACDB1.inst` on member `rac1` Start of `ora.rac2.ASM2.asm` on member `rac2` succeeded. Attempting to start `ora.RACDB.RACDB2.inst` on member `rac2` Start of `ora.RACDB.RACDB2.inst` on member `rac2` succeeded. Start of `ora.RACDB.RACDB1.inst` on member `rac1` succeeded. CRS-1002: Resource 'ora.rac1.ons' is already running on member 'rac1'
CRS-1002: Resource 'ora.rac2.ons' is already running on member 'rac2'
CRS-1002: Resource 'ora.RACDB.db' is already running on member 'rac1'
Attempting to start `ora.RACDB.taf.RACDB2.srv` on member `rac2` Attempting to start `ora.RACDB.taf.cs` on member `rac1` Attempting to start `ora.RACDB.taf.RACDB1.srv` on member `rac1` Attempting to start `ora.rac1.gsd` on member `rac1` Attempting to start `ora.rac2.gsd` on member `rac2` Start of `ora.RACDB.taf.cs` on member `rac1` succeeded. Start of `ora.RACDB.taf.RACDB2.srv` on member `rac2` succeeded. Start of `ora.rac2.gsd` on member `rac2` succeeded. Start of `ora.RACDB.taf.RACDB1.srv` on member `rac1` succeeded. Start of `ora.rac1.gsd` on member `rac1` succeeded. CRS-0223: Resource 'ora.RACDB.db' has placement error.
CRS-0223: Resource 'ora.rac1.ons' has placement error.
CRS-0223: Resource 'ora.rac2.ons' has placement error.
有关更多的srvctl命令的参考可以通过下面的方法获得: RACDB1@rac1 /home/oracle$ /oracle/app/crs/bin/srvctl Usage: srvctl command: enable|disable|start|stop|relocate|status|add|remove|modify|getenv|setenv|unsetenv|config objects: database|instance|service|nodeapps|asm|listener For detailed help on each command and object and its options use: srvctl
使用“-h”选项可以获得更加详细的用法。
8.停止当前节点所有CRS资源 RACDB1@rac1 /home/oracle$ /oracle/app/crs/bin/crsctl stop resources Stopping resources. This could take several minutes. Successfully stopped CRS resources.
11.检查OCR RACDB1@rac1 /home/oracle$ /oracle/app/crs/bin/ocrcheck Status of Cluster Registry is as follows : Version : 2 Total space (kbytes) : 104216 Used space (kbytes) : 4604 Available space (kbytes) : 99612 ID : 529429773 Device/File Name : /dev/raw/raw1 Device/File integrity check succeeded