Use the ocrconfig -repair
command to repair an OCR configuration on the node from which you run this command. Use this command to add, delete, or replace an OCR ___location on a node that may have been stopped while you made changes to the OCR configuration in the cluster. OCR locations that you add must exist, have sufficient permissions, and, in the case of Oracle ASM disk groups, must be mounted before you can add them.
ocrconfig -repair -add file_name | -delete file_name | -replace current_file_name -replacement new_file_name
You must run this command as root
.
Oracle High Availability Services must be started to successfully complete the repair.
The Cluster Ready Services daemon must be stopped before running ocrconfig -repair
.
The file_name
variable can be a valid OCR and either an absolute path name of an existing file or the name of an Oracle ASM disk group. For example:
/oradbocfs/crs/data.ocr
d:\oracle\mirror.ocr
+newdg/mycluster/OCRFILE/registry.255.842574125
If you specify an Oracle ASM disk group, then the name of the disk group must be preceded by a plus sign (+
).
To obtain the name of an Oracle ASM disk group, run the ocrcheck -config -details
command on a node where the OCR configuration does not need repair.
See Also:
Oracle Grid Infrastructure Installation Guide for information about creating OCRs and setting correct permissions
Oracle Automatic Storage Management Administrator's Guide for more information about Oracle ASM disk group management
"Using the OCRCHECK Utility" for information about the ocrcheck -config -details
command
You can only use one option with ocrconfig -repair
at a time.
Running this command only modifies the local configuration and it and only affects the current node.