• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

Oracle 11gR2 安装RAC错误之–HOSTS文件错误

mysql 搞代码 4年前 (2022-01-09) 27次浏览 已收录 0个评论

Oracle11gR2安装RAC错误之–HOSTS文件错误系统环境:操作系统:RedHatEL5Cluster:OracleGI(GridInfrastructure)Oracle:Oracle11.2.0.1.0如图所示:RAC系统架构

Oracle 11gR2 安装RAC错误之–HOSTS文件错误

系统环境:

操作系统:RedHat EL5

Cluster: Oracle GI(Grid Infrastructure)

Oracle: Oracle 11.2.0.1.0


如图所示:RAC 系统架构

对于Oracle 11G构建RAC首先需要构建GI(Grid Infrastructure)的架构

错误现象:

节点2运行root.sh脚本错误:

[root@hk2 ~]# /u01/11.2.0/grid/root.sh

Running Oracle 11g root.sh script…The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /u01/11.2.0/gridEnter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin … Copying oraenv to /usr/local/bin … Copying coraenv to /usr/local/bin …Creating /etc/oratab file…Entries will be added to the /etc/oratab file as needed byDatabase Configuration Assistant when a database is createdFinished running generic part of root.sh script.Now product-specific root actions will be performed.2014-07-07 17:04:37: Parsing the host name2014-07-07 17:04:37: Checking for super user privileges2014-07-07 17:04:37: User has super user privilegesUsing configuration parameter file: /u01/11.2.0/grid/crs/install/crsconfig_paramsCreating trace directoryLOCAL ADD MODE Creating OCR keys for user ‘root’, privgrp ‘root’..Operation successful.Adding daemon to inittabCRS-4123: Oracle High Availability Services has been started.ohasd is startingCRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node hk1, number 1, and is terminatingAn active cluster was found during exclusive startup, restarting to join the clusterCRS-2672: Attempting to start ‘ora.mdnsd’ on ‘hk2’CRS-2676: Start of ‘ora.mdnsd’ on ‘hk2’ succeededCRS-2672: Attempting to start ‘ora.gipcd’ on ‘hk2’CRS-2676: Start of ‘ora.gipcd’ on ‘hk2’ succeededCRS-2672: Attempting to start ‘ora.gpnpd’ on ‘hk2’CRS-2676: Start of ‘ora.gpnpd’ on ‘hk2’ succeededCRS-2672: Attempting to start ‘ora.cssdmonitor’ on ‘hk2’CRS-2676: Start of ‘ora.cssdmonitor’ on ‘hk2’ succeededCRS-2672: Attempting to start ‘ora.cssd’ on ‘hk2’CRS-2672: Attempting to start ‘ora.diskmon’ on ‘hk2’CRS-2676: Start of ‘ora.diskmon’ on ‘hk2’ succeededCRS-2676: Start of ‘ora.cssd’ on ‘hk2’ succeededCRS-2672: Attempting to start ‘ora.ctssd’ on ‘hk2’CRS-2676: Start of ‘ora.ctssd’ on ‘hk2’ 本文来源gaodai#ma#com搞@@代~&码网^succeededCRS-2672: Attempting to start ‘ora.drivers.acfs’ on ‘hk2’CRS-2676: Start of ‘ora.drivers.acfs’ on ‘hk2’ succeededCRS-2672: Attempting to start ‘ora.asm’ on ‘hk2’CRS-2676: Start of ‘ora.asm’ on ‘hk2’ succeededCRS-2672: Attempting to start ‘ora.crsd’ on ‘hk2’CRS-2676: Start of ‘ora.crsd’ on ‘hk2’ succeededCRS-2672: Attempting to start ‘ora.evmd’ on ‘hk2’CRS-2676: Start of ‘ora.evmd’ on ‘hk2’ succeededTimed out waiting for the CRS stack to start.

查看日志:

[root@hk2 crsd]# ls

core.12152 core.15934 core.16128 crsd.log crsdOUT.log crsd.trc

[root@hk2 crsd]# tail crsdOUT.log

Unable to resolve address for localhost:2016

ONS runtime exiting

Fatal error: eONS: eonsapi.c: Aug 4 2009 21:09:36

2014-07-07 17:55:31

Changing directory to /u01/11.2.0/grid/log/hk2/crsd

2014-07-07 17:55:31

CRSD REBOOT

Unable to resolve address for localhost:2016

ONS runtime exiting

Fatal error: eONS: eonsapi.c: Aug 4 2009 21:09:36

[root@hk2 crsd]# more crsdOUT.log

2014-07-07 17:08:23

Changing directory to /u01/11.2.0/grid/log/hk2/crsd

2014-07-07 17:08:23

CRSD REBOOT

Unable to resolve address for localhost:2016

ONS runtime exiting

Fatal error: eONS: eonsapi.c: Aug 4 2009 21:09:36

……

错误提示,无法解析localhost主机!

查看/etc/hosts文件:


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Oracle 11gR2 安装RAC错误之–HOSTS文件错误

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址