In the RAC environment where two virtual machines are started, we usually need to shut down the host. This usually causes the two virtual machines to sleep separately. After several practices, after each restart, r
In the RAC environment where two virtual machines are started, we usually need to shut down the host. This usually causes the two virtual machines to sleep separately. After several practices, after each restart, r
In the RAC environment where two virtual machines are started, we usually need to shut down the host. In this case, the two virtual machines are usually sleep separately. After several practices, after each restart, there are various problems in the rac environment, and this problem has plagued me for a long time. Recently, before hibernation, I will close the service that first shuts down RAC data, then you can sleep the VM with ease. The operations are as follows:
[Oracle @ rac1 ~] $ Srvctl stop database-d prod-o immediate
[Oracle @ rac1 ~] $ Srvctl stop asm-n rac1
[Oracle @ rac1 ~] $ Srvctl stop asm-n rac2
[Oracle @ rac1 ~] $ Srvctl stop nodeapps-n rac1
[Oracle @ rac1 ~] $ Srvctl stop nodeapps-n rac2
[Root @ rac1 ~] # Crs_stat-t
Name Type Target State Host
------------------------------------------------------------
Ora. prod. db application OFFLINE
Ora... d1.inst application OFFLINE
Ora... d2.inst application ONLINE OFFLINE
Ora... SM1.asm application OFFLINE
Ora... C1.lsnr application OFFLINE
Ora. rac1.gsd application OFFLINE
Ora. rac1.ons application OFFLINE
Ora. rac1.vip application OFFLINE
Ora... SM2.asm application ONLINE OFFLINE
Ora... C2.lsnr application OFFLINE
Ora. rac2.gsd application OFFLINE
Ora. rac2.ons application OFFLINE
Ora. rac2.vip application OFFLINE
After disabling one of the VMS, You can separately start rac on another node (Virtual Machine) as follows:
First, disable the restart of the ASM instance of Node 2, and then start Node 1. The operation is as follows:
[Oracle @ rac1 dbs] $ srvctl disable asm-n rac2
[Oracle @ rac1 ~] $ Srvctl start nodeapps-n rac1
[Oracle @ rac1 ~] $ Srvctl start asm-n rac1
[Oracle @ rac1 ~] $ Srvctl start instance-d prod-I prod1-o open
[Oracle @ rac1 dbs] $ crs_stat-t
Name Type Target State Host
------------------------------------------------------------
Ora. prod. db application ONLINE rac1
Ora... d1.inst application ONLINE rac1
Ora... d2.inst application OFFLINE
Ora... SM1.asm application ONLINE rac1
Ora... C1.lsnr application ONLINE rac1
Ora. rac1.gsd application ONLINE rac1
Ora. rac1.ons application ONLINE rac1
Ora. rac1.vip application ONLINE rac1
Ora... SM2.asm application OFFLINE
Ora... C2.lsnr application OFFLINE
Ora. rac2.gsd application OFFLINE
Ora. rac2.ons application OFFLINE
Ora. rac2.vip application ONLINE rac1
Recommended reading:
RedHat Linux 5 & CentOS 5
Install Oracle 10g R2 in CentOS 6.3 (x32)
Installing Oracle 12C in Linux-6-64