Oracle技术服务|系统集成|技术开发

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 1980|回复: 0

[分享] clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open sh...

[复制链接]

29

主题

0

好友

462

积分

版主

Rank: 7Rank: 7Rank: 7

发表于 2015-3-10 09:45:35 |显示全部楼层

问题描述:

安装RAC的时候出现报错  :

[[email protected] ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.


Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[[email protected] ~]# /u01/app/grid/11.2.0/root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/app/grid/11.2.0

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/11.2.0/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Failed to create keys in the OLR, rc = 127, Message:
  /u01/app/grid/11.2.0/bin/clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared

Failed to create keys in the OLR at /u01/app/grid/11.2.0/crs/install/crsconfig_lib.pm line 7497.
/u01/app/grid/11.2.0/perl/bin/perl -I/u01/app/grid/11.2.0/perl/lib -I/u01/app/grid/11.2.0/crs/install /u01/a

看来安装的时候还没有按compat-libcap1安装上?检查一下果然是。

问题分析:

通过错误分析发现还有一个包没有安装

解决方案:

安装compat-libcap1安装包

[[email protected] ~]# locate libcap.so.1
[[email protected] ~]# rpm -qa |grep -i libcap
libcap-ng-0.6.4-3.el6_0.1.x86_64
libcap-2.16-5.5.el6.x86_64
[[email protected] ~]# yum list |grep compat-libcap1
compat-libcap1.i686                    1.10-1                               yum
compat-libcap1.x86_64                  1.10-1                               yum
[[email protected] ~]# yum install -y compat-libcap1
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package compat-libcap1.x86_64 0:1.10-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================
Package                         Arch                    Version                 Repository            Size
============================================================================================================
Installing:
compat-libcap1                  x86_64                  1.10-1                  yum                   17 k

Transaction Summary
============================================================================================================
Install       1 Package(s)
Total download size: 17 k
Installed size: 29 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : compat-libcap1-1.10-1.x86_64                                                             1/1
  Verifying  : compat-libcap1-1.10-1.x86_64                                                             1/1
Installed:
  compat-libcap1.x86_64 0:1.10-1                                                j                           
Complete!

安装包后卸载之前安装的crs

[[email protected] ~]# /u01/app/grid/11.2.0/crs/install/rootcrs.pl -verbose -deconfig -force
Using configuration parameter file: /u01/app/grid/11.2.0/crs/install/crsconfig_params
PRCR-1119 : Failed to look up CRS resources of ora.cluster_vip_net1.type type
PRCR-1068 : Failed to query resources
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.gsd is registered
Cannot communicate with crsd
PRCR-1070 : Failed to check if resource ora.ons is registered
Cannot communicate with crsd


CLSU-00100: Operating System function: failed failed with error data: 2
CLSU-00101: Operating System error message: No such file or directory
CLSU-00103: error location: scrsearch3
CLSU-00104: additional error information: id doesnt exist scls_scr_setval
CRS-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
Failure in execution (rc=-1, 256, No such file or directory) for command /etc/init.d/ohasd deinstall
Successfully deconfigured Oracle clusterware stack on this node

在重新执行:

[[email protected] ~]# /u01/app/grid/11.2.0/root.sh

done!!!


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

QQ|手机版|DB Support 技术联盟 ( 粤ICP备13057501号-1 )

GMT+8, 2018-1-22 20:01 , Processed in 0.227912 second(s), 21 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部