Restoring the Oracle Cluster Registry on Windows Systems

If you are storing OCR on an Oracle ASM disk group, and that disk group is corrupt, then you must restore the Oracle ASM disk group using Oracle ASM utilities, and then mount the disk group again before recovering OCR. Recover OCR by running the ocrconfig -restore command.

Note:

If the original OCR ___location does not exist, then you must create an empty (0 byte) OCR ___location with the same name as the original OCR ___location before you run the ocrconfig -restore command.

See Also:

Oracle Automatic Storage Management Administrator's Guide for information about how to restore Oracle ASM disk groups

Use the following procedure to restore OCR on Windows systems:

  1. List the nodes in your cluster by running the following command on one node:
    C:\>olsnodes
    
  2. Stop Oracle Clusterware by running the following command as a member of the Administrators group on all of the nodes:
    C:\>crsctl stop crs
    

    If the preceding command returns any error due to OCR corruption, stop Oracle Clusterware by running the following command as a member of the Administrators group on all of the nodes:

    C:\>crsctl stop crs -f
    
  3. Start the Oracle Clusterware stack on one node in exclusive mode by running the following command as a member of the Administrators group:
    C:\>crsctl start crs -excl -nocrs
    

    The -nocrs option ensures that the CRSD process and OCR do not start with the rest of the Oracle Clusterware stack.

    Ignore any errors that display.

  4. Restore OCR with the OCR backup file that you identified in "Listing Backup Files" by running the following command as a member of the Administrators group:
    C:\>ocrconfig -restore file_name
    

    Make sure that the OCR devices that you specify in the OCR configuration exist and that these OCR devices are valid.

    Note:

    • Ensure that the OCR devices that you specify in the OCR configuration exist and that these OCR devices are valid.

    • Ensure that the Oracle ASM disk group you specify exists and is mounted.

    See Also:

  5. Verify the integrity of OCR:
    C:\>ocrcheck
    
  6. Stop Oracle Clusterware on the node where it is running in exclusive mode:
    C:\>crsctl stop crs -f
    
  7. Begin to start Oracle Clusterware by running the following command as a member of the Administrators group on all of the nodes:
    C:\>crsctl start crs
    
  8. Run the following Cluster Verification Utility (CVU) command to verify OCR integrity of all of the nodes in your cluster database:
    C:\>cluvfy comp ocr -n all -verbose

    See Also:

    Cluster Verification Utility Reference for more information about enabling and using CVU