1问题描述:
rac 搭建过程中在节点1执行root,报了如下错误:
[root@rac1 ~]# /u01/app/grid/product/11.2.0/grid_1/root.sh
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/grid/product/11.2.0/grid_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
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/product/11.2.0/grid_1/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File Analyzer
Failed to create keys in the OLR, rc = 127, Message:
/u01/app/grid/product/11.2.0/grid_1/bin/clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory
Failed to create keys in the OLR at /u01/app/grid/product/11.2.0/grid_1/crs/install/crsconfig_lib.pm line 7660.
/u01/app/grid/product/11.2.0/grid_1/perl/bin/perl -I/u01/app/grid/product/11.2.0/grid_1/perl/lib -I/u01/app/grid/product/11.2.0/grid_1/crs/install /u01/app/grid/product/11.2.0/grid_1/crs/install/rootcrs.pl execution failed
2.解办法:
上面报错是由于系统缺少compat-libcap1 包造成的,在2个节上分别安装这个包再次执行root脚本就可以了
[root@rac1 ~]# rpm -ivh /os/Packages/compat-libcap1-1.10-1.x86_64.rpm
本文介绍在RAC环境中执行root.sh脚本时遇到的错误及其解决方法。问题源于系统缺少compat-libcap1包,导致无法创建OLR密钥。通过在各节点安装该软件包后,问题得以解决。
289

被折叠的 条评论
为什么被折叠?



