Restoring the Oracle Cluster Registry in an Oracle Restart Environment

Note:

  • OCR is present for backward compatibility.

  • Once an OCR ___location is created, it does not get updated in the Oracle Restart environment.

  • If the Oracle Restart home has been backed up, and if there is a failure, then restoring the Oracle Restart home restores OCR.

Use the following procedure to restore OCR in an Oracle Restart environment:

  1. Stop Oracle High Availability Services by running the following command as root on all of the nodes:
    # crsctl stop has [-f]
    
  2. Run the ocrcheck -config command to determine the OCR ___location and then create an empty (0 byte) OCR ___location with appropriate permissions in that ___location.
  3. Restore OCR by running the following command as root:
    # crsctl pin css -n host_name

    Note:

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

    See Also:

    Oracle Grid Infrastructure Installation Guide for information about creating OCRs

  4. Run the ocrcheck command to verify the integrity of OCR:
  5. Start Oracle High Availability Services by running the following command on all of the nodes:
    $ crsctl start has