How the Windows environment recovers (Oracle 11g Grid) OCR voting corrupted clusters

Source: Internet
Author: User

How the Windows environment recovers (Oracle 11g Grid) OCR voting corrupted clusters


After the Oracle 11g OCR can be placed on the ASM disk, and ASM boot depends on OCR and Votedisk, so the loss of OCR or Votedisk will cause cluter not start properly

Assuming that the original OCR location does not already exist, you must create an empty OCR in the same location using the same name.


We recommend that you use the following steps to restore OCR:

1. Determine the current cluster node count
C:\>olsnodes


2. Turn off Oracle Clusterware (all of the nodes)
C:\crsctl Stop CRS

You may not be able to shut down the cluster due to OCR corruption, and you can force the cluster to shut down by using the following command:
C:\>crsctl Stop Crs-f


3. Start the cluster in exclusive mode
C:\>crsctl Start Crs-excl-nocrs

-nocrs indicates that crsdprocess and OCR do not start with the cluster stack, but the ASM instance starts

Can ignore the error message that the above command runs in the Times.


4. Restore OCR
Ensure that the corresponding OCR device or ASM DiskGroup already exists or is already mount before you recover
The assumption is that ASM Disk group can use the ASMCA graphical interface to create a DG

---Determine the backup location of OCR first
Ocrconfig-showbackup

---restore OCR
C:\>ocrconfig-restore file_name


5, verify the integrity of the OCR
C:\>ocrcheck


6. Close the cluster that executes in exclusive mode
C:\>crsctl Stop Crs-f


7. Restart the cluster
C:\>crsctl Start CRS


8. Use the CVU component to verify the integrity of the OCR across all nodes:
C:\>cluvfy Comp Ocr-n All-verbose

The LIUNX test environment of the test information, the window environment is almost the same
$cluvfy Comp Ocr-n All-verbose

Verifying OCR Integrity
Checking OCR Integrity ...
Checking the absence of a non-clustered configuration ...
All nodes free of non-clustered, local-only configurations


ASM Running check passed. ASM is running on all specified nodes

Checking OCR config file "/etc/oracle/ocr.loc" ...
OCR config file "/etc/oracle/ocr.loc" Check Successful


Disk Group for OCR location ' +crs ' available on all the nodes


Note:
This check does not verify the integrity of the OCR contents. Execute ' Ocrcheck ' as a privileged user to verify the

Contents of OCR.

OCR Integrity Check Passed

Verification of OCR Integrity was successful.

Related Article

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.