[root@his1 ~]#cat/app/grid/product/11.2.0/grid/log/his1/ohasd/ohasd.log
[ohasd(28152)]CRS-0704:Oracle High Availability Service aborted due to Oracle Local Registry error
[PROCL-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]].
Details at (:OHAS00106:) in /app/11.2.0/grid/log/host-db01/ohasd/ohasd.log.
[client(28167)]CRS-10001:CRS-10132: No msg for has:crs-10132 [10][50]
[root@his1 ~]# cat /app/grid/product/11.2.0/grid/log/his1/crsd/crsdOUT.log
2012-10-26 18:10:47.097: [ default][65483168] OHASD Daemon Starting. Command string :restart
2012-10-26 18:10:47.097: [ default][65483168] Initializing OLR
2012-10-26 18:10:47.098: [ OCROSD][65483168]
utopen:6m': failed in stat OCR file/disk /app/11.2.0/grid/cdata/host-db01.olr, errno=2, os err string=No such file or directory
2012-10-26 18:10:47.098: [ OCROSD][65483168]utopen:7: failed to open any OCR file/disk, errno=2, os err s
tring=No such file or directory
2012-10-26 18:10:47.099: [ OCRRAW][65483168]proprinit: Could not open raw device
2012-10-26 18:10:47.099: [ OCRAPI][65483168]a_init:16!: Backend init unsuccessful : [26]
2012-10-26 18:10:47.099: [ CRSOCR][65483168] OCR context init failure. Error:
PROCL-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]
2012-10-26 18:10:47.099: [ default][65483168] Created alert : (:OHAS00106:) : OLR initialization failed,
error: PROCL-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]
2012-10-26 18:10:47.099: [ default][65483168][PANIC] OHASD exiting; Could not init OLR
2012-10-26 18:10:47.099: [ default][65483168] Done.
[root@his1 ~]# cd /app/grid/product/11.2.0/grid/cdata/his1.olr
看到olr文件损坏
用以下命令,可以重建OLR文件:
[root@his1 ~]#ocrcheck -config -local
Oracle Local Registry configuration is :
Device/File Name : /app/grid/product/11.2.0/grid/cdata/his1.olr
[root@his1 ~]#touch /app/grid/product/11.2.0/grid/cdata/his1.olr 创建olr文件
[root@his1 ~]#/app/11.2.0/grid/bin/ocrconfig -local -restore /app/grid/product/11.2.0/grid/cdata/backup_20120810_102624.olr
用手动备份文件还原
[root@his1 ~]# cat /etc/oracle/olr.loc
olrconfig_loc=/app/grid/product/11.2.0/grid/cdata/his1.olr
crs_home=/app/grid
OLR: Oracle Local Registry
OCR manages Oracle Clusterware and Oracle RAC database configuration information
OLR resides on every node in the cluster and manages Oracle Clusterware
configuration information for each particular node
Voting disks manage information about node membership. Each voting disk must be
accessible by all nodes in the cluster for nodes to be members of the cluster
OLR is a registry similar to OCR located on each node in a cluster,
but contains information specific to each node.
It contains manageability information about Oracle Clusterware,
including dependencies between various services.
Oracle High Availability Services uses this information.
OLR is located on local storage on each node in a cluster.
Its default location is in the path Grid_home/cdata/host_name.olr,
where Grid_home is the Oracle Grid Infrastructure home,
and host_name is the host name of the node.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29065182/viewspace-1070534/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/29065182/viewspace-1070534/