How to restore the damaged ocrvoting cluster in windows (oracle11ggrid)

Source: Internet
Author: User

In windows, how does one restore a damaged cluster (oracle 11g grid) by using ocr voting?

Oracle 11 GB later ocr can be placed on the asm disk, and the start of the ASM depends on ocr and votedisk. Therefore, if the ocr or votedisk is lost, the cluter cannot be started normally.

If the original ocr position does not exist, you must use the same name to create an empty OCR at the original position.

We recommend that you follow these steps to restore OCR:

1. determine the number of nodes in the current cluster
C: \> olsnodes

2. Disable oracle clusterware (all of the nodes)
C: \ crsctl stop crs

The cluster may not be shut down due to ocr damage. You can use the following command to force the cluster to be shut down:
C: \> crsctl stop crs-f

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

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

You can ignore the error message returned when the preceding command is executed.

4. Restore ocr
Before restoration, make sure that the ocr device or asm diskgroup already exists or has been mounted.
For asm disk group, you can use the asmca graphic interface to create dg.

--- Determine the ocr backup location first
Ocrconfig-showbackup

--- Restore ocr
C: \> ocrconfig-restore file_name

5. Verify ocr integrity
C: \> ocrcheck

6. Disable the cluster running 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 OCR across all nodes:
C: \> cluvfy comp ocr-n all-verbose

The test environment of the liunx Based on the detection information is similar to that of the window environment.
$ 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 deployments

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 'crcheck' as a privileged user to verify

Contents of OCR.

OCR integrity check passed

Verification of OCR integrity was successful.

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.