Oracle11g RAC安裝GI時會遇到INS-06006報錯處理過程

巡完南山巡南山發表於2019-01-22

Oracle11g RAC 安裝GI時會遇到以下INS-06006報錯,根據提示猜測可能是grid使用者之間互信出了問題,排查發現互信正常,但問題依舊。

檢視MOS文件,發現了一個bug 17580744,文件編號為1597212.1

根據描述,與報錯完全一致,原因為/etc/hosts檔案中主機名為大寫,或者IP與主機名對應時用的多個名字

下面是錯誤的寫法

$ grep RACNODE /etc/hosts
10.0.0.101 RACNODE1.US.ORACLE.COM RACNODE1
10.0.0.102 RACNODE2.US.ORACLE.COM RACNODE2

該問題會出現在11.2.0.4版本的GI安裝時,任意作業系統都會遇到

------------cause-----------

Upper or mixed case hostname being used, this is being investigated in 

Duplicates:

 - INS-06006 OCCURS IF HOSTNAME IS IN CAPITAL LETTERS FOR GI INSTALLATION

 - PASSWORDLESS SSH CONNECTIVITY NOT SET UP BETWEEN THE FOLLOWING NODES

------------solution-----------

The bug is fixed in 12.1.0.2

The workaround is to either allow OUI or manually ( note 300548.1 ) setup ssh user equivalence for the installing user, then in command line window, ensure ssh doesn't prompt for password for both real hostname and lower case hostname. 

For example:

$ ssh  RACNODE1  date                     ====>> real hostname for node1
Fri Nov 8 10:01:03 PST 2013      
$ ssh racnode1 date                     ====>> lower case hostname for node1
Fri Nov 8 10:01:04 PST 2013
$ ssh RACNODE2 date
Fri Nov 8 10:01:05 PST 2013
$ ssh racnode2 date
Fri Nov 8 10:01:06 PST 2013

 

In the case of upgrade, the alternate workaround is to update inventory to set to lower case nodename instead of real hostname:

$ <OLD_GI_HOME>/oui/bin/runInstaller -updateNodelist ORACLE_HOME=<OLD_GI_HOME> "CLUSTER_NODES={racnode1,racnode2}" CRS=true

Note in above command it's racnode1,racnode2 in lower case despite the hostname is upper case. 

 

In addition, verify if there is a mismatch in Hostname Definition (Case Sensitivity) between DNS & /etc/hosts. For example: lower case in DNS & upper case in /etc/hosts OR vice-versa etc.

3. 解決過程

1. 將主機名的大寫字母改成小寫

#hostname xx

#vi /etc/sysconfig/network

更改

HOSTNAME=xx

2. 更改/etc/hosts檔案內容




來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26964624/viewspace-2564428/,如需轉載,請註明出處,否則將追究法律責任。

相關文章