在安装数据库软件时出现以下情况:
解决方法一:
查看 less /uu/oraInventory/ContentsXML/inventory.xml文件,文件内容如下:
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2009, Oracle. All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
<SAVED_WITH>11.2.0.1.0</SAVED_WITH>
<MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="Ora11g_gridinfrahome1" LOC="/uu/grid" TYPE="O" IDX="1" CRS="true"> ---->如果文件中没有这个参数则添加这个参数,再重新进行数据库安装
<NODE_LIST>
<NODE NAME="rac1"/>
<NODE NAME="rac2"/>
</NODE_LIST>
</HOME>
</HOME_LIST>
</INVENTORY>
解决方法二:
上诉办法不行:则切换用户为 su - grid
>> cd /uu/grid/oui/bin ---->进入到该目录下,运行下列脚本,--更新inventory文件
>> ./runInstaller -silent -ignoreSysPrereqs -updateNodeList ORACLE_HOME=
"/uu/grid/"
LOCAL_NODE=
"rac1"
CLUSTER_NODES=
"{rac1,rac2}"
CRS=
true
Name Type Target State Host
------------------------------------------------------------
ora.DATA.dg ora....up.type ONLINE ONLINE rac1
ora....ER.lsnr ora....er.type ONLINE ONLINE rac1
ora....N1.lsnr ora....er.type ONLINE ONLINE rac1
ora.asm ora.asm.type ONLINE ONLINE rac1
ora.eons ora.eons.type ONLINE ONLINE rac1
ora.gsd ora.gsd.type OFFLINE OFFLINE
ora....network ora....rk.type ONLINE ONLINE rac1
ora.oc4j ora.oc4j.type OFFLINE OFFLINE
ora.ons ora.ons.type ONLINE ONLINE rac1
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application OFFLINE OFFLINE
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip ora....t1.type ONLINE ONLINE rac1
ora.rac2.vip ora....t1.type ONLINE ONLINE rac1
ora.scan1.vip ora....ip.type ONLINE ONLINE rac1
查询集群状态的时候有值了。
然后重新安装数据库软件就有节点啦。