Importing Oracle Cluster Registry Content on Windows Systems

Note:

This procedure assumes default installation of Oracle Clusterware on all nodes in the cluster, where Oracle Clusterware autostart is enabled.

Use the following procedure to import 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
    

    Ignore any errors that display.

    Check whether CRSD is running. If it is, stop it by running the following command as a member of the Administrators group:

    C:\>crsctl stop resource ora.crsd -init

    Caution:

    Do not use the -init flag in any other command.

  4. Import OCR by running the following command as a member of the Administrators group:
    C:\>ocrconfig -import file_name
    

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

    Note:

    • If the original OCR location does not exist, then you must create an empty (0 byte) OCR location before you run the ocrconfig -import command.

    • 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