OEL 11.2.0.2 RAC 数据库停电导致has进程无法启动OLR文件损坏


 

[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/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值