Precautions for using rac environment on virtual machines

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.