1. 程式人生 > >INS-35423 安裝 database 時安裝程式無法獲取叢集節點

INS-35423 安裝 database 時安裝程式無法獲取叢集節點

作業系統為 RedHat Linux 6.4,已安裝Oracle 11.2.0.4.0 版本的 Grid後,開始以oracle使用者身份安裝對應版本的database軟體,結果在在走到  Oracle Database 11g Release 2 Installer database - Step 4 of 10 中的 Grid Instrallation Options 介面,叢集列表為空,且報INS-35423錯誤,見下圖:

通過檢查各項配置均無誤後,於是在網路上搜索了下,在國外的一個論壇上找到如下介面方法:

之所以未能獲取到叢集節點,是因為位於grid使用者下的ORACLE_BASE下的inventory目錄內的一個xml檔案有問題,請看如下檔案:

[[email protected] ContentsXML]# cat inventory.xml  <?xml version="1.0" standalone="yes" ?> <!-- Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. --> <!-- Do not modify the contents of this file by hand. --> <INVENTORY> <VERSION_INFO>    <SAVED_WITH>11.2.0.4.0</SAVED_WITH>    <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER> </VERSION_INFO> <HOME_LIST> <HOME NAME="Ora11g_gridinfrahome1" LOC="/u01/app/11.2.0/grid" TYPE="O" IDX="1">
------少了一個CRS="true"內容    <NODE_LIST>       <NODE NAME="qjdb1"/>       <NODE NAME="qjdb2"/>    </NODE_LIST> </HOME> </HOME_LIST> <COMPOSITEHOME_LIST> </COMPOSITEHOME_LIST> </INVENTORY> 通過執行如下命令修改: [[email protected] ~]$ /u01/app/11.2.0/grid/oui/bin/runInstaller -updateNodeList ORACLE_HOME="/u01/app/11.2.0/grid" CRS=true Starting Oracle Universal Installer... Checking swap space: must be greater than 500 MB.   Actual 32000 MB    Passed The inventory pointer is located at /etc/oraInst.loc The inventory is located at /u01/app/oraInventory 'UpdateNodeList' was successful.

上面命令成功執行後,可以發現inventory.xml檔案的內容發生了變化,已經調整為預期內容:

[[email protected] ContentsXML]# cat inventory.xml  <?xml version="1.0" standalone="yes" ?> <!-- Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. --> <!-- Do not modify the contents of this file by hand. --> <INVENTORY> <VERSION_INFO>    <SAVED_WITH>11.2.0.4.0</SAVED_WITH>    <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER> </VERSION_INFO> <HOME_LIST> <HOME NAME="Ora11g_gridinfrahome1" LOC="/u01/app/11.2.0/grid" TYPE="O" IDX="1" CRS="true">    <NODE_LIST>       <NODE NAME="qjdb1"/>       <NODE NAME="qjdb2"/>    </NODE_LIST> </HOME> </HOME_LIST> <COMPOSITEHOME_LIST> </COMPOSITEHOME_LIST> </INVENTORY> 需要提醒的是,僅可通過命令方式更新inventory.xml檔案,如果通過手工修改inventory.xml檔案內容,可能會導致連安裝database的介面都打不開,如runInstaller命令無法執行。