ocrconfig -replace

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.

Syntax

ocrconfig -replace current_location_name -replacement new_location_name

Usage Notes

  • 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:

  • 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.

Example

To replace an OCR device or file:

# ocrconfig -replace /oradbocfs/crs/data.ocr -replacement +newdg