[INS-35423] The installer has detected that Oracle Clusterware is not running on local node
现象
静默安装db软件直接跳出,使用图形安装db软件报错:
[INS-35423] The installer has detected that Oracle Clusterware is not running on local node.
Cause - You have chosen to install Oracle RAC when Oracle Clusterware stack is not runningon the local node.
Action - Start the Oracle Clusterware stack by running the following command as the rootuser from the Oracle Clusterware home (Grid home) : /bin/crsctl start crs. when the OracleClusterware stack is running,restart the installer and continue with the Oracle RAC installation.
分析
集群状态正常:
1 2 3 4 5 6 7 8 9 10 11 12 13 | [root@rac1 ContentsXML]# crsctl check cluster -all ************************************************************** rac1: CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online ************************************************************** rac2: CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online ************************************************************** [root@rac1 ContentsXML]# |
可从如下几个方面检查:
1、仔细检查/etc/hosts文件,修改配置错误。
2、中央目录文件问题,请参考:https://www.xmmup.com/oraclezhongyangmuluwenjianinventory-xmlqueshicrspeizhidaozhiracanzhuangdbruanjianshizhaobudaojiedian.html
3、bug所致,Bug 17881910 - INS-35423 DURING RAC DATABASE INSTALL
4、若还是报错,则重新执行root.sh脚本。请参考:https://www.xmmup.com/oracle-raczhongxinzhixingroot-shjiaoben.html
若还是报错,则只能删除集群,重新安装了,卸载集群请参考:https://www.xmmup.com/ruheshougongxiezaioracle-racjiqun.html
注意:
软件安装过程会在$ORACLE_BASE/oraInventory/logs目录下生成详细的日志文件,仔细查看生成的日志文件能够帮助我们判断问题。
1 2 | $ORACLE_BASE/oraInventory/logs/installActions* $ORACLE_BASE/oraInventory/logs/oraInstall*.err, oraInstall*.out |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | [root@rac1 ~]# find /u01 -name installActions* /u01/app/11.2.0.4/grid/cfgtoollogs/oui/installActions2022-08-05_02-17-27PM.log /u01/app/oraInventory/logs/installActions2022-08-05_02-17-27PM.log /u01/app/oraInventory/logs/installActions2022-08-05_02-51-22PM.log [root@rac1 ~]# more /u01/app/11.2.0.4/grid/cfgtoollogs/oui/installActions2022-08-05_02-17-27PM.log | grep ORACLE_HOSTNAME INFO: ORACLE_HOSTNAME localhost INFO: ORACLE_HOSTNAME localhost INFO: Setting the value for ORACLE_HOSTNAME variable INFO: Setting variable 'ORACLE_HOSTNAME' to 'localhost'. Received the value from the command line. WARNING: Duplicate definition of global variable ORACLE_HOSTNAME INFO: Setting the 'HostName ( ORACLE_HOSTNAME )' property to 'localhost'. Received the value from the command line. [root@rac1 ~]# [root@rac1 ~]# more /u01/app/oraInventory/logs/installActions2022-08-05_02-17-27PM.log | grep ORACLE_HOSTNAME INFO: ORACLE_HOSTNAME localhost INFO: ORACLE_HOSTNAME localhost INFO: Setting the value for ORACLE_HOSTNAME variable INFO: Setting variable 'ORACLE_HOSTNAME' to 'localhost'. Received the value from the command line. WARNING: Duplicate definition of global variable ORACLE_HOSTNAME INFO: Setting the 'HostName ( ORACLE_HOSTNAME )' property to 'localhost'. Received the value from the command line. [root@rac1 ~]# more /u01/app/oraInventory/logs/installActions2022-08-05_02-51-22PM.log | grep ORACLE_HOSTNAME ORACLE_HOSTNAME localhost |
发现:在java程序检索HOSTNAME的时候发生错误,导致使用到的是您VIP的HOSTNAME。
解决
建议通过以下方式规避:
安装数据库软件时强制指定HOSTNAME为rac1
1 2 3 | setup.exe -debug ORACLE_HOSTNAME=rac1 ./runInstaller -debug ORACLE_HOSTNAME=rac1 |
且只能通过图形化界面运行才不会报错,比较坑。