Use the ocrconfig -replace
command to replace an OCR device or file on the node from which you run this command. 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.
You must run this command as root
.
The new_location_name
variable can be a file name or the name of an Oracle ASM disk group. For example:
/oradbocfs/crs/data.ocr
: You must create an empty (0 byte) OCR ___location
d:\oracle\mirror.ocr
: You must create an empty (0 byte) OCR ___location
+newdg
: Ensure that the disk group exists and is mounted
If you specify an Oracle ASM disk group, then the name of the disk group must be preceded by a plus sign (+
).
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
You must have at least two OCR devices to use this command. If you do not have at least two OCR devices, then you must run the ocrconfig -add
command to add a new OCR device followed by the ocrconfig -delete
command to delete the OCR device you want to replace.