背景:
阅读新闻
Oracle database 11g rac损坏ocr和votedisk恢复实验
[日期:2014-05-13] 来源:Linux社区 作者:Linux [字体:]
本人的操作环境:Oracle database rdbms 11g rac on OEL5.5
查看一下表决磁盘和ocr的信息:
[root@rac1 bin]# pwd
/u01/app/11.2.0/grid/bin
[root@rac1 bin]# ./crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 5122b184495d4fe9bf1fad29647807ba (ORCL:VOL1) [OCRVOTI]
Located 1 voting disk(s).
[root@rac1 bin]# ./ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2700
Available space (kbytes) : 259420
ID : 268167937
Device/File Name : +OCRVOTI
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
查看当前ocr备份情况,ocr
[root@rac1 bin]# ./ocrconfig -showbackup
rac2 2014/03/25 12:04:28 /u01/app/11.2.0/grid/cdata/rac-cluster/backup00.ocr
rac2 2014/03/21 16:16:32 /u01/app/11.2.0/grid/cdata/rac-cluster/backup01.ocr
rac2 2014/03/21 12:16:31 /u01/app/11.2.0/grid/cdata/rac-cluster/backup02.ocr
rac2 2014/03/25 12:04:28 /u01/app/11.2.0/grid/cdata/rac-cluster/day.ocr
rac2 2014/03/19 14:26:16 /u01/app/11.2.0/grid/cdata/rac-cluster/week.ocr
可以进行手工备份:
[root@rac1 bin]# ./ocrconfig -local -manualbackup
rac1 2014/03/25 14:33:39 /u01/app/11.2.0/grid/cdata/rac1/backup_20140325_143339.olr
rac1 2014/03/25 10:34:33 /u01/app/11.2.0/grid/cdata/rac1/backup_20140325_103433.olr
rac1 2014/03/25 09:53:32 /u01/app/11.2.0/grid/cdata/rac1/backup_20140325_095332.olr
rac1 2014/03/25 09:53:18 /u01/app/11.2.0/grid/cdata/rac1/backup_20140325_095318.olr
rac1 2014/03/18 10:57:51 /u01/app/11.2.0/grid/cdata/rac1/backup_20140318_105751.olr
--------------------------------------分割线 --------------------------------------
推荐阅读: