Tuesday, March 4, 2014

Adding, Replacing, and Repairing OCR Locations

Add an OCR location to either ASM or other storage device:
# ocrconfig -add +DATA2
# ocrconfig -add /dev/sde1

To replace the current OCR location:
# ocrconfig -replace /dev/sde1 -replacement +DATA2

To repair OCR configuration, run this command on the node on which you have stopped Oracle Clusterware:
# ocrconfig -repair -add +DATA1
(You cannot perform this operation on a node on which Oracle Clusterware is running.)


Removing an Oracle Cluster Registry Location

Do not perform an OCR removal unless there is at least one other active OCR location online, or you will get an error.

# ocrconfig -delete +DATA2
# ocrconfig -delete /dev/sde1

To perform a physical backup
# ocrconfig -manualbackup

To display a list of manual backups:
$ ocrconfig –showbackup manual

You can check the status of OLR by using ocrcheck:
# ocrcheck -local


Locating the OCR Automatic Backups
----------------------------------
$ ocrconfig -showbackup auto

The backup frequency and retention policies are:
Every four hours: CRS keeps the last three copies.
At the end of every day: CRS keeps the last two copies.
At the end of every week: CRS keeps the last two copies.

Changing the Automatic OCR Backup Location

# ocrconfig –backuploc <path to shared CFS or NFS>

No comments:

Post a Comment