RAC11.2.0.4GI安装执行root.sh脚本报错

环境介绍

在主安装节点执行root脚本,查看日志存在以下失败信息

[root@orcl1 ~]# tail -100f /u01/app/grid_home/install/root_orcl1_2021-02-04_16-43-26.log
Performing root user operation for Oracle 11g

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/grid_home
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /u01/app/grid_home/crs/install/crsconfig_params
User ignored Prerequisites during installation
Installing Trace File Analyzer
/u01/app/grid_home/bin/sqlplus -V ... failed rc=127 with message:
 /u01/app/grid_home/bin/sqlplus: error while loading shared libraries: libsqlplus.so: cannot open shared object file: No such file or directory

Failed to add (property/value):('VERSION/'') for checkpoint:ROOTCRS_STACK.Error code is 256
/u01/app/grid_home/bin/ocrconfig.bin: error while loading shared libraries: /u01/app/grid_home/lib/libclntsh.so.11.1: file too short
Failed to create or upgrade OLR
Failed to create or upgrade OLR at /u01/app/grid_home/crs/install/crsconfig_lib.pm line 7599.
/u01/app/grid_home/perl/bin/perl -I/u01/app/grid_home/perl/lib -I/u01/app/grid_home/crs/install /u01/app/grid_home/crs/install/rootcrs.pl execution failed

错误特征

除了上述的错误以外,可以查看一下两个节点$GI_HOME/lib目录下库的数量对比

[root@orcl1 ~]# ls /u01/app/grid_home/lib/ | wc -l
210
[root@orcl2 ~]#  ls /u01/app/grid_home/lib/ | wc -l
207 
#因为是第二次安装,之前一次安装是成功的所以对比了一下安装成功库文件的数量
[root@orcl1 ~]# ls /u01/app/grid_home/lib/ | wc -l
215  -> 这个是安装成功的数量

错误原因

11.2版本bug,在12.1该bug已经被修复

GI的安装或升级完成,OUI要求运行root.sh或rootupgrade.sh脚本,可能出现在第一个节点上成功完成,但是根脚本在一个或多个远程节点上失败。或者两个节点都无法运行成功。在12.1.0.2中引入了Rapid Trans,以改善在安装Grid Infrastructure(GI)期间向远程节点的文件传输,解决前者的问题。后者问题暂时无法确定,只能重装。

如果安装过程出现安装节点成功但是其他节点失败的问题,可以将安装节点$GI_HOME/lib目录下库传入到其他节点重新执行root脚本接口

上一篇:shell中设置文字输出的颜色及字体格式


下一篇:oracle基础文件操作