ITPub博客

首页 > 数据库 > Oracle > Oracle 11gR2 RAC 执行root.sh时遭遇 CRS-0184/PRCR-1070

Oracle 11gR2 RAC 执行root.sh时遭遇 CRS-0184/PRCR-1070

原创 Oracle 作者:pxbibm 时间:2014-05-11 10:50:51 0 删除 编辑

在安装Oracle 11g RAC时,在第一个节点执行root.sh时遭遇了CRS-0184/PRCR-1070的错误,错误如下面的描述。

1、故障现象

执行root时,出现了下面的错误,仅列出错误部分
CRS-0184: Cannot communicate with the CRS daemon.  #这个是主要的错误提示,不能同crs通信

PRCR-1070 : Failed to check if resource ora.asm is registered
Cannot communicate with crsd
add asm ... failed
clsr_start_dg return error at loc: 70 rc=0
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Create failed, or completed with errors.
create diskgroup DATA ... failed
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Add failed, or completed with errors.
Command return code of 1 (256) from command: /u01/app/11.2.0/grid/bin/crsctl add type ora.registry.acfs.type -basetype
  ora.local_resource.type -file /u01/app/11.2.0/grid/crs/template/registry.acfs.type
add ora.registry.acfs.type ... failed
PRCR-1070 : Failed to check if resource ora.net1.network is registered
Cannot communicate with crsd
add scan=scan-cluster.orasrv.com ... failed
Preparing packages for installation...
cvuqdisk-1.0.7-1                                 
Configure Oracle Grid Infrastructure for a Cluster ... failed
Updating inventory properties for clusterware
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.  Actual 3498 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/app/oraInventory
'UpdateNodeList' was successful.

#使用crsctl check时报crs-4535的错误
[root@linux1 bin]# ./crsctl check cluster     
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

2、分析日志

#查看grid的crsd部分的日志,注意该日志位于$CRS_HOME/log/rac1/crsd
[root@linux1 crsd]# tail -30 crsdOUT.log 
2014-05-10 12:50:22 
CRSD REBOOT
Unable to resolve address for localhost:2016
ONS runtime exiting
Fatal error: eONS: eonsapi.c: Aug  4 2009 21:09:36
2014-05-10 12:50:22   
Changing directory to /u01/app/11.2.0/grid/log/rac1/crsd
2014-05-10 12:50:22   
CRSD REBOOT
Unable to resolve address for localhost:2016
ONS runtime exiting
Fatal error: eONS: eonsapi.c: Aug  4 2009 21:09:36
2014-05-10 12:50:24 
Changing directory to /u01/app/11.2.0/grid/log/rac1/crsd
2014-05-10 12:50:24 
CRSD REBOOT
Unable to resolve address for localhost:2016
ONS runtime exiting
Fatal error: eONS: eonsapi.c: Aug  4 2009 21:09:36
2014-05-10 12:55:28 
Changing directory to /u01/app/11.2.0/grid/log/rac1/crsd
2014-05-10 12:55:28 
CRSD REBOOT
Unable to resolve address for localhost:2016
ONS runtime exiting
Fatal error: eONS: eonsapi.c: Aug  4 2009 21:09:36
2014-05-10 12:59:22 
Changing directory to /u01/app/11.2.0/grid/log/rac1/crsd
2014-05-10 12:59:22
CRSD REBOOT
#上面的日志提示不能够解析localhost

#看看grid的主日志,也就是alert_nodename部分的描述
[root@linux1 linux1]# tail -100 alertrac1.log | more
2014-05-10 13:30:23.550
[crsd(3913)]CRS-1201:CRSD started on node rac1.
2014-05-10 13:30:28.340
[/u01/app/11.2.0/grid/bin/oraagent.bin(3993)]CRS-5823:Could not initialize agent framework. Details at (:CRSAGF00120:) in
 /u01/app/11.2.0/grid/log/rac1/agent/crsd/oraagent_grid/oraagent_grid.log.
2014-05-10 13:30:34.932
[ohasd(2748)]CRS-2765:Resource 'ora.crsd' has failed on server 'rac1'.
Meatlink [ID 1230899.1] 有关于该问题的描述,就是需要添加localhost到hosts文件
3、解决故障

#查看本地的hosts文件,下面是更改后的hosts配置文件
[root@rac1 ~]#cat /etc/hosts | grep 127.0
#127.0.0.1              linux1.orasrv.com linux1 localhost.localdomain localhost  #这个是安装OS时自动生成的
#127.0.0.1              rac1           #这个是安装rac之前配置的,这样配置是有问题的,一定要写localhost
127.0.0.1                 rac1           localhost                  #添加一个新的关于localhost的解析entry

#尝试启动crs
[root@rac1 bin]# ./crsctl start res ora.crsd -init
CRS-2672: Attempting to start 'ora.crsd' on 'rac1'
CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded

#crs成功启动
[root@rac1 bin]# ./crsctl check cluster
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

[root@rac1 bin]# ./crsctl stat res -t -init
------------------------------------------------------------------------------------------------------
NAME            TARGET      STATE        SERVER    STATE_DETAILS   Cluster Resources   
------------------------------------------------------------------------------------------------------
ora.asm                1              ONLINE  ONLINE      rac1                  Started           
ora.crsd                1              ONLINE  ONLINE      rac1                                     
ora.cssd                1              ONLINE  ONLINE      rac1                                     
ora.cssdmonit        1             ONLINE  ONLINE      rac1                                     
ora.ctssd               1             ONLINE  ONLINE      rac1                  ACTIVE:0           
ora.diskmon           1            ONLINE  ONLINE      rac1                                     
ora.drivers.acfs       1           ONLINE  ONLINE      rac1                                     
ora.evmd               1            ONLINE  ONLINE      rac1                                           
ora.gipcd               1            ONLINE  ONLINE      rac1                                           
ora.gpnpd            1            ONLINE  ONLINE      rac1                                           
ora.mdnsd            1            ONLINE  ONLINE      rac1    
-----------------------------------------------------------------------------------------------------------------------
pxboracle@live.com
2014.5.11 10:51
share you knowledge with the world.


 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12798004/viewspace-1158401/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 安装GoldenGate
请登录后发表评论 登录
全部评论
Oracle ACE。ACOUG核心成员,Oracle用户组年轻专家。熟悉Oracle的体系结构,擅长Oracle数据库架构规划、SQL优化、OWI方面性能的优化。曾服务于航天、航空、机车、大型制造行业数据库的维护以及系统开发工作,开发过基于Oracle数据库的大型ERP系统。
  • 博文量
    345
  • 访问量
    2477689