clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared
2015-03-02 14:09
274 查看
问题描述:
安装RAC的时候出现报错 :
[root@gtsdb1 ~]# /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.
[root@gtsdb1 ~]# /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安装包
[root@gtsdb1 ~]# locate libcap.so.1
[root@gtsdb1 ~]# rpm -qa |grep -i libcap
libcap-ng-0.6.4-3.el6_0.1.x86_64
libcap-2.16-5.5.el6.x86_64
[root@gtsdb1 ~]# yum list |grep compat-libcap1
compat-libcap1.i686 1.10-1 yum
compat-libcap1.x86_64 1.10-1 yum
[root@gtsdb1 ~]# 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
[root@gtsdb1 ~]# /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
在重新执行:
[root@gtsdb1 ~]# /u01/app/grid/11.2.0/root.sh
done!!!
安装RAC的时候出现报错 :
[root@gtsdb1 ~]# /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.
[root@gtsdb1 ~]# /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安装包
[root@gtsdb1 ~]# locate libcap.so.1
[root@gtsdb1 ~]# rpm -qa |grep -i libcap
libcap-ng-0.6.4-3.el6_0.1.x86_64
libcap-2.16-5.5.el6.x86_64
[root@gtsdb1 ~]# yum list |grep compat-libcap1
compat-libcap1.i686 1.10-1 yum
compat-libcap1.x86_64 1.10-1 yum
[root@gtsdb1 ~]# 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
[root@gtsdb1 ~]# /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
在重新执行:
[root@gtsdb1 ~]# /u01/app/grid/11.2.0/root.sh
done!!!
相关文章推荐
- /u01/app/11.2.0/grid/bin/clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open
- /u01/app/grid/11.2.0/bin/clscfg.bin: error while loading shared libraries: libcap.so.1: cannot ope
- clscfg.bin: error while loading shared libraries: libcap.so.1:
- 执行root.sh,报clscfg.bin: error while loading shared libraries: libcap.so.1
- 启动Memcached报错:/usr/local/memcached/bin/memcached: error while loading shared libraries: libevent-2.1.so.6: cannot open shared object file: No such file or directory
- windows下搭建基于ssh的git服务器(解决/usr/bin/git.exe: error while loading shared libraries: ?: cannot open sha)
- ./bin/logServer: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or dir
- /usr/local/bin/memcached: error while loading shared libraries: libevent-1.3.so.1: cannot open share
- ./bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file:
- error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file
- 错误解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
- error while loading shared libraries: libXXX.so.x: cannot open shared object file: No such file or d
- error while loading shared libraries: libmkl_rt.so: cannot open shared object file: No such file or
- error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
- thrift: error while loading shared libraries: libthriftc.so.0: cannot open shared object file: No su
- 安装Asterisk 12,启动报错:asterisk: error while loading shared libraries: libjansson.so.4: cannot open shar
- ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No
- 启动nginx 报错 error while loading shared libraries: libpcre.so.1: cannot open shared object file
- error while loading shared libraries: libboost_thread.so.1.49.0: cannot open shared object file: No
- error while loading shared libraries: libopencv_core.so.2.4: cannot open shared object file: No such