Friday, September 18, 2009

How to move or replace and repair OCR (Oracle Cluster Registry)

Moving or Replacing Oracle Cluster Registry:
If you are replacing or moving an OCR/OCR MIRROR make sure that other OCR file is ONLINE and also clusterware is running on the node that you are performing the replace operation.

Please note that the OCR that you are replacing or moving can be either online or offline.

Run the below command to move or replace OCR
#ocrconfig -replace ocr
For ex:- ocrconfig -replace ocr /dev/raw/raw5

Run the below command to move or replace OCR MIRROR.

#ocrconfig -replace ocrmirror
For ex: - ocrconfig -replace ocr /dev/raw/raw6

Repairing Oracle Cluster Registry (OCR) Configuration:
You may need to repair an OCR configuration, if your OCR configuration changes ran (adding/removing/replacing OCR/OCR mirror) while the node is shutdown.

Make sure you run the command on the node which you have shutdown and you cannot perform this operation while oracle clusterware is running.

Run the below command to repair
# ocrconfig –repair ocrmirror device_name
for ex:- ocrconfig –repair ocrmirror /dev/raw/raw1

Click here to learn How to Add and Remove Oracle Cluster Registry

Regards,
Satishbabu Gunukula
http://www.oracleracexpert.com/

4 comments:

  1. When issuing ocrconfig -replace it checks first about the size of the new OCR before making the replacement. If it is acceptable then it will replace to the new OCR. The acceptable size is either 128Mb or 256Mb and so on. If the original OCR size was less than 128Mb, please make the new OCR as 128Mb or 256Mb. If the original OCR size was less than 256Mb and greater than 128Mb, please make the new OCR as 256Mb.

    8GB SD Karte

    ReplyDelete
  2. helpful and straight forward commands, Thanks

    ReplyDelete
  3. We are offering website service, E-commerce wesbite, and website designs.....

    plugin wordpress

    ReplyDelete