RAC : Managing OCR Backup and Recovering OCR

Posted By Sagar Patil

Backing up Oracle Cluster Registry

$ocrconfig -showbackup
Normally Cluster registry is backed up at $CRS_Home/cdata/cluster_name

Change backup location using following syntax:
$ocrconfig -backuploc directory name

The Oracle Clusterware automatically creates OCR backups every four hours. At any one time, Oracle always retains the last three backup copies of the OCR. The CRSD process that creates the backups also creates and retains an OCR backup for each full day and at the end of each week.

Restoring the Oracle Cluster Registry on UNIX-Based Systems

  • Identify the OCR backups using the “ocrconfig -showbackup”
  • Stop Oracle Clusterware on all of the nodes using “init.crs stop”
  • Perform the restore ocrconfig -restore file_name(from ocrconfig -showbackup)
  • Restart Oracle Clusterware by running “init.crs start”
  • verify OCR integrity using “cluvfy comp ocr -n all [-verbose]”

Import/Export Oracle Cluster Registry
“In addition to using the automatically created OCR backup files, you should also export the OCR contents before and after making significant configuration changes, such as adding or deleting nodes from your environment, modifying Oracle Clusterware resources, or creating a database.”

  • Locate OCR export file created using “ocrconfig -export file_name”
  • Stop Oracle Clusterware on all of the nodes using “init.crs stop”
  • Perform the import using “ocrconfig -import file_name”
  • Restart Oracle Clusterware by running “init.crs start”
  • verify OCR integrity using “cluvfy comp ocr -n all [-verbose]”

Leave a Reply

You must be logged in to post a comment.

Top of Page

Top menu