安装11.2.0.3 RAC grid 执行root.sh报错
admin
2023-05-15 01:22:13
0
安装11.2.0.3 RAC grid 执行root.sh报错 
 root wallet
  root wallet cert
  root cert export
  peer wallet
  profile reader wallet
  pa wallet
  peer wallet keys
  pa wallet keys
  peer cert request
  pa cert request
  peer cert
  pa cert
  peer root cert TP
  profile reader root cert TP
  pa root cert TP
  peer pa cert TP
  pa peer cert TP
  profile reader pa cert TP
  profile reader peer cert TP
  peer user cert
  pa user cert
Adding Clusterware entries to inittab
CRS-2672: Attempting to start 'ora.mdnsd' on 'tip01'
CRS-2676: Start of 'ora.mdnsd' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'tip01'
CRS-2676: Start of 'ora.gpnpd' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'tip01'
CRS-2672: Attempting to start 'ora.gipcd' on 'tip01'
CRS-2676: Start of 'ora.cssdmonitor' on 'tip01' succeeded
CRS-2676: Start of 'ora.gipcd' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'tip01'
CRS-2672: Attempting to start 'ora.diskmon' on 'tip01'
CRS-2676: Start of 'ora.diskmon' on 'tip01' succeeded
CRS-2676: Start of 'ora.cssd' on 'tip01' succeeded

已成功创建并启动 ASM。

已成功创建磁盘组OCR。

clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 86e6db2173634f7abf99a8771f48cfd7.
Successful addition of voting disk a4974d910f144f4abf5907f693751710.
Successful addition of voting disk 048a68d2af584f8cbfae02d943e11d67.
Successfully replaced voting disk group with +OCR.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   86e6db2173634f7abf99a8771f48cfd7 (ORCL:OCR_VOL1) [OCR]
 2. ONLINE   a4974d910f144f4abf5907f693751710 (ORCL:OCR_VOL2) [OCR]
 3. ONLINE   048a68d2af584f8cbfae02d943e11d67 (ORCL:OCR_VOL3) [OCR]
Located 3 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'tip01'
CRS-2676: Start of 'ora.asm' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.OCR.dg' on 'tip01'
CRS-2676: Start of 'ora.OCR.dg' on 'tip01' succeeded
/u01/app/11.2.0/grid/product/db_1/bin/srvctl start nodeapps -n tip01 ... failed
FirstNode configuration failed at /u01/app/11.2.0/grid/product/db_1/crs/install/crsconfig_lib.pm line 9196.
/u01/app/11.2.0/grid/product/db_1/perl/bin/perl 
-I/u01/app/11.2.0/grid/product/db_1/perl/lib -I/u01/app/11.2.0/grid/product/db_1/crs/install 
/u01/app/11.2.0/grid/product/db_1/crs/install/rootcrs.pl execution failed


第一节点执行root.sh最后报错

检查下oraagent_grid.log发现以下错误
无法解析 (:CLSN00010:)无法解析 localhost (为接口 any) 都是这种报错

[root@tip01 oraagent_grid]# more oraagent_grid.log

2012-05-23 19:36:40.711: [    AGFW][1394043200] {1:31151:202} Agent sending reply for: RESOURCE_START[ora.ons tip01 1] ID 409
8:562
2012-05-23 19:36:40.711: [ora.ons][1360484672] {1:31151:202} [start] execCmd ret = 2
2012-05-23 19:36:40.712: [ora.ons][1360484672] {1:31151:202} [start] (:CLSN00010:)getaddrinfo(localhost, 6100, 1) 失败 (Tempo
rary failure in name resolution): Connection refused
2012-05-23 19:36:40.712: [ora.ons][1360484672] {1:31151:202} [start] (:CLSN00010:)无法解析 localhost (为接口 any)
2012-05-23 19:36:40.712: [ora.ons][1360484672] {1:31151:202} [start] (:CLSN00010:)getaddrinfo(localhost, 6100, 1) 失败 (Tempo
rary failure in name resolution): Connection refused
2012-05-23 19:36:40.712: [ora.ons][1360484672] {1:31151:202} [start] (:CLSN00010:)无法解析 localhost (为接口 any)
2012-05-23 19:36:40.712: [ora.ons][1360484672] {1:31151:202} [start] (:CLSN00010:)onsctl start: ons failed to start
2012-05-23 19:36:40.712: [ora.ons][1360484672] {1:31151:202} [start] (:CLSN00010:)
2012-05-23 19:36:40.712: [ora.ons][1360484672] {1:31151:202} [start] OnsAgent::start }
2012-05-23 19:36:40.712: [ora.ons][1360484672] {1:31151:202} [start] (:CLSN00107:) clsn_agent::start }
2012-05-23 19:36:40.712: [    AGFW][1360484672] {1:31151:202} Command: start for resource: ora.ons tip01 1 completed with sta
tus: SUCCESS
2012-05-23 19:36:40.714: [ora.ons][1360484672] {1:31151:202} [check] OnsAgent::check {
2012-05-23 19:36:40.714: [ora.ons][1360484672] {1:31151:202} [check] getOracleHomeAttrib: oracle_home = /u01/app/11.2.0/grid/
product/db_1
2012-05-23 19:36:40.714: [    AGFW][1394043200] {1:31151:202} Agent sending reply for: RESOURCE_START[ora.ons tip01 1] ID 409
8:562
2012-05-23 19:36:40.715: [ora.ons][1360484672] {1:31151:202} [check] Utils:execCmd action = 3 flags = 6 ohome = /u01/app/11.2
.0/grid/product/db_1/opmn/ cmdname = onsctli. 
2012-05-23 19:36:40.820: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)getaddrinfo(localhost, 6100, 1) 失败 (Tempo
rary failure in name resolution): Connection refused
2012-05-23 19:36:40.820: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)无法解析 localhost (为接口 any)
2012-05-23 19:36:40.820: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)ons is not running ...
2012-05-23 19:36:40.820: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)
2012-05-23 19:36:40.821: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)Utils:execCmd scls_process_join() uret 2

2012-05-23 19:36:40.821: [ora.ons][1360484672] {1:31151:202} [check] execCmd ret = 2
2012-05-23 19:36:40.821: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)getaddrinfo(localhost, 6100, 1) 失败 (Tempo
rary failure in name resolution): Connection refused
2012-05-23 19:36:40.821: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)无法解析 localhost (为接口 any)
2012-05-23 19:36:40.821: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)ons is not running ...
2012-05-23 19:36:40.821: [ora.ons][1360484672] {1:31151:202} [check] (:CLSN00010:)
2012-05-23 19:36:40.824: [ USRTHRD][1360484672] {1:31151:202} Ocr Context init default level -1408463520


怀疑是hosts问题

[root@tip01 ~]# more /etc/hosts

#eth0-Public IP
162.20.1.228   tip01
162.20.1.229   tip02

#eth2 鈥PRIVATE IP
192.168.99.228  tip01-priv
192.168.99.229  tip02-priv

#VIP
162.20.1.230  tip01-vip
162.20.1.231  tip02-vip

#SCAN
162.20.1.232  rac-scan

原hosts文件缺少127.0.0.1 localhost 
于是尝试在两个节点添加localhost

[root@tip01 ~]# more /etc/hosts
127.0.0.1       localhost
::1             localhost6.localdomain6 localhost6

#eth0-Public IP
162.20.1.228   tip01
162.20.1.229   tip02

#eth2 鈥PRIVATE IP
192.168.99.228  tip01-priv
192.168.99.229  tip02-priv

#VIP
162.20.1.230  tip01-vip
162.20.1.231  tip02-vip

#SCAN
162.20.1.232  rac-scan


重新执行root.sh

[root@tip01 db_1]# ./root.sh 
Performing root user operation for Oracle 11g 

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/11.2.0/grid/product/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.


Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.

Using configuration parameter file: /u01/app/11.2.0/grid/product/db_1/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation

OLR initialization - successful
  root wallet
  root wallet cert
  root cert export
  peer wallet
  profile reader wallet
  pa wallet
  peer wallet keys
  pa wallet keys
  peer cert request
  pa cert request
  peer cert
  pa cert
  peer root cert TP
  profile reader root cert TP
  pa root cert TP
  peer pa cert TP
  pa peer cert TP
  profile reader pa cert TP
  profile reader peer cert TP
  peer user cert
  pa user cert
Adding Clusterware entries to inittab
CRS-2672: Attempting to start 'ora.mdnsd' on 'tip01'
CRS-2676: Start of 'ora.mdnsd' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'tip01'
CRS-2676: Start of 'ora.gpnpd' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'tip01'
CRS-2672: Attempting to start 'ora.gipcd' on 'tip01'
CRS-2676: Start of 'ora.cssdmonitor' on 'tip01' succeeded
CRS-2676: Start of 'ora.gipcd' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'tip01'
CRS-2672: Attempting to start 'ora.diskmon' on 'tip01'
CRS-2676: Start of 'ora.diskmon' on 'tip01' succeeded
CRS-2676: Start of 'ora.cssd' on 'tip01' succeeded

已成功创建并启动 ASM。

已成功创建磁盘组OCR。

clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4256: Updating the profile
Successful addition of voting disk 232a38e7c66c4fc4bf5a66145114ea3d.
Successful addition of voting disk 7bee34f239d74f92bf4cbb5773000b81.
Successful addition of voting disk 0329e1ba14914fd1bf7bd7bc86aac045.
Successfully replaced voting disk group with +OCR.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   232a38e7c66c4fc4bf5a66145114ea3d (ORCL:OCR_VOL1) [OCR]
 2. ONLINE   7bee34f239d74f92bf4cbb5773000b81 (ORCL:OCR_VOL2) [OCR]
 3. ONLINE   0329e1ba14914fd1bf7bd7bc86aac045 (ORCL:OCR_VOL3) [OCR]
Located 3 voting disk(s).
CRS-2672: Attempting to start 'ora.asm' on 'tip01'
CRS-2676: Start of 'ora.asm' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.OCR.dg' on 'tip01'
CRS-2676: Start of 'ora.OCR.dg' on 'tip01' succeeded
CRS-2672: Attempting to start 'ora.registry.acfs' on 'tip01'
CRS-2676: Start of 'ora.registry.acfs' on 'tip01' succeeded
Configure Oracle Grid Infrastructure for a Cluster ... succeeded

安装GRID时,在执行root.sh报错时,首先检查下两个节点的hosts文件IP与主机对应关系是否正确完整,本例就是因为hosts文件不完整导致root.sh执行失败


相关内容

热门资讯

以军士兵集体丢掉武器抗命,大喊... 据凤凰卫视报道,以色列国防军一军事基地7月30日发生士兵抗命事件,约120名士兵抗议指挥官做法,将武...
蒋成华任商务部副部长 国务院任免国家工作人员。任命蒋成华为商务部副部长。免去蒋成华的商务部国际贸易谈判副代表职务。
伊朗驻华大使:在军事威胁下,不... 新华社北京7月31日电(记者刁慧琳) 伊朗驻华大使法兹里7月28日表示,伊美回到谈判桌的前提是美国必...
伊朗革命卫队在霍尔木兹海峡击中... 当地时间31日,伊朗伊斯兰革命卫队发布声明称,革命卫队海军当天在霍尔木兹海峡击中并扣留了两艘违反禁令...
美媒:特朗普,遇到了一个更强硬... 据《纽约时报》7月29日报道,就在特朗普总统看似放弃战事升级计划几天后,美国再次与伊朗交火。上周末,...
女子做气管镜时不幸身亡,丈夫称... 7月29日,西安刘先生反映妻子在当地医院做支气管镜检查时死亡,看监控时发现医生疑有违规操作。刘先生表...
全网“帮卖西瓜”,然后呢? 近日,河南部分地区西瓜滞销的消息在网上热度很高。很多地方也伸出援手:有景区收购千斤西瓜、免费赠予游客...
美媒:乌克兰袭击伊朗船只,险引... 据《纽约时报》7月28日报道,据伊朗和西方官员称,伊朗曾考虑攻击乌克兰的一个港口,以报复乌克兰对一艘...
20年里,他只画美女,用东方风... 迈进KIM在上海的工作室,迎面是一整墙的美女们。她们像是刚从一场时髦的沙龙里退场,或倚或立,眉宇间是...
Google在港推出AI代理G... 观点网讯:7月29日,Google在香港推出AI代理Gemini Spark,该代理可全天候在后台运...