The backup of OCR content(Oracle Cluster Registry, to know more about OCR click here) is performed using two methods:
1. Automatic OCR Backup
OCR is automatically backed up physically
To check current location of automatic backup of OCR:
[root@rac1 crs]# ocrconfig –showbackuprac1 2009/06/07 14:58:31 /apps/oracle/clusterware/product/10.2.0/crs/cdata/crs
rac1 2009/06/07 10:58:30 /apps/oracle/clusterware/product/10.2.0/crs/cdata/crs
rac1 2009/06/07 06:58:29 /apps/oracle/clusterware/product/10.2.0/crs/cdata/crs
rac1 2009/06/06 22:58:27 /apps/oracle/clusterware/product/10.2.0/crs/cdata/crs
rac2 2009/05/31 05:46:11 /apps/oracle/clusterware/product/10.2.0/crs/cdata/crs
_____________
[root@rac1] cd $ORA_CRS_HOME /cdata/crsList the existing backup
[root@rac1 crs]# ls -lsttotal 27804
5032 -rw-r–r– 1 root root 5140480 Jun 7 14:58 backup00.ocr
5032 -rw-r–r– 1 root root 5140480 Jun 7 10:58 backup01.ocr
5032 -rw-r–r– 1 root root 5140480 Jun 7 06:58 backup02.ocr
4236 -rw-r–r– 1 root root 4325376 Jun 7 02:58 day_.ocr
4236 -rw-r–r– 1 root root 4325376 Jun 7 02:58 week_.ocr
4236 -rw-r–r– 1 root root 4325376 Jun 6 22:58 day.ocr
.
Restoring OCR from automatic backup :
root@rac1]# cluvfy comp ocr –n all
root@rac1]# crsctl start crs
.
2. Manual OCR backup:
You can take logical backup of OCR using export and can restore it using import command.
root@rac1]# crsctl stop crs
root@rac1]# ocrconfig – export <path_ name>
root@rac1]# ocrconfig – export /home/oracle/ocr
root@rac1]# crsctl start crs
.
Recover OCR using physical backup:
To restore content on OCR file use import option of ocrconfig command.
root@rac1]# crsctl stop crs
root@rac1]# ocrconfig –import <path_ name>
root@rac1]# ocrconfig –import /home/oracle/ocr
root@rac1]# cluvfy comp ocr –n all
root@rac1]# crsctl start crs
I'm 10gR2 RAC Oracle certified professional, working from last 6 year in the field of database.