当前位置 博文首页 > LuciferLiu_DBA:INS-35354 not part of a valid cluster

    LuciferLiu_DBA:INS-35354 not part of a valid cluster

    作者:[db:作者] 时间:2021-06-15 15:09

    可参考MOS文档:Top 11gR2 RAC Installation Issues (Doc ID 1372375.1)?? ?

    静默安装GRID软件之后,安装ORACLE软件时报错 INS-35354

    报错如下:

    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2021-04-22_11-44-09PM. 
    Please wait ...
    [FATAL] [INS-35354] The system on which you are attempting to install Oracle RAC is not part of a valid cluster.
       CAUSE: Before you can install Oracle RAC, you must install Oracle Grid Infrastructure on all servers (Oracle Clusterware and Oracle ASM) to create a cluster.
       ACTION: Oracle Grid Infrastructure is not installed. Install it either from the separate installation media included in your media pack, or install it by downloading it from Electronic Product Delivery (EPD) or the Oracle Technology Network (OTN). Oracle Grid Infrastructure normally is installed by a different operating system user than the one used for Oracle Database. It may need to be installed by your system administrator. See the installation guide for more details.
    

    原因:

    由于在静默安装grid软件时,没有执行最后一步的脚本:

    Execute Root Scripts successful.
    As install user, execute the following script to complete the configuration.
    	1. /u01/app/11.2.0/grid/cfgtoollogs/configToolAllCommands RESPONSE_FILE=<response_file>

    导致 /u01/app/oraInventory/ContentsXML/inventory.xml 文件中缺失了:CRS="true"。

    [root@lucifer01 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">
       <NODE_LIST>
          <NODE NAME="lucifer01"/>
          <NODE NAME="lucifer02"/>
       </NODE_LIST>
    </HOME>
    </HOME_LIST>
    <COMPOSITEHOME_LIST>
    </COMPOSITEHOME_LIST>
    </INVENTORY>
    

    重新执行脚本:

    cat <<EOF >>/home/grid/cfgrsp.propertiesc
    oracle.assistants.asm|S_ASMPASSWORD=oracle
    oracle.assistants.asm|S_ASMMONITORPASSWORD=oracle
    EOF
    
    su - grid -c "$ENV_GRID_HOME/cfgtoollogs/configToolAllCommands RESPONSE_FILE=/home/grid/cfgrsp.properties"

    再次查看inventory.xml文件,已经增加 CRS="true"

    [root@lucifer01 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="lucifer01"/>
          <NODE NAME="lucifer02"/>
       </NODE_LIST>
    </HOME>
    </HOME_LIST>
    <COMPOSITEHOME_LIST>
    </COMPOSITEHOME_LIST>
    </INVENTORY>
    

    再次执行Oracle安装,不再报错。