Occur "libcap.so.1: cannot open shared object file" during Install 11g GI when running root.sh
来源:互联网 发布:php socket 视频教程 编辑:程序博客网 时间:2024/06/06 02:11
【Environment for server and database】
Suse Linux 11 sp3 + oracle 11.2.0.3 + ASM
【问题描述】
安装11g GI 软件结束最后步,执行root.sh时候遇到库文件无法加载
Performing root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /home/grid/product/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
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: /home/grid/product/11.2.0/grid/crs/install/crsconfig_params
/home/grid/product/11.2.0/grid/bin/crsctl query crs activeversion ... failed rc=127 with message:
/home/grid/product/11.2.0/grid/bin/crsctl.bin: error while loading shared libraries: libcap.so.1:
cannot open shared object file: No such file or directory
Improper Oracle Grid Infrastructure configuration found on this host
Deconfigure the existing cluster configuration before starting
to configure a new Grid Infrastructure
run '/home/grid/product/11.2.0/grid/crs/install/roothas.pl -deconfig'
to configure existing failed configuration and then rerun root.sh
/home/grid/product/11.2.0/grid/perl/bin/perl -I/home/grid/product/11.2.0/grid/perl/lib -I
/home/grid/product/11.2.0/grid/crs/install /home/grid/product/11.2.0/grid/crs/install/roothas.pl execution failed
【排除过程】
1.查找是否已正确安装并生成了lib文件
libcap2-32bit-2.11-2.17.1
libcap2-2.11-2.17.1
2.很明显 libcap包已安装过了,为什么oracle不会自动去寻找呢,继续查找
shadcdlora08:/ # find / -name libcap*/lib/libcap.so.2
/lib/libcap.so.2.11
/lib64/libcap.so.2
/lib64/libcap.so.2.11
/lib64/libcap.so.1.10
【注】很明显libcap.so.1 不存在
3.根据错误提示缺少libcap.so.1,为其建立一个软连接
shadcdlora08:~ # cd /lib64shadcdlora08:~ # ln -s libcap.so.1.10 libcap.so.1
shadcdlora08# ls -al libcap*
lrwxrwxrwx 1 root root 14 Aug 1 17:22 libcap.so.1 -> libcap.so.1.10
-rwxr-xr-x 1 root root 14792 Feb 21 2009 libcap.so.1.10
lrwxrwxrwx 1 root root 14 Jul 17 23:53 libcap.so.2 -> libcap.so.2.11
-rwxr-xr-x 1 root root 19016 Nov 5 2011 libcap.so.2.11
4.强制重置配置11g GI ohas
【roothas.pl deconfig 见】http://blog.csdn.net/wengtf/article/details/11484447
Using configuration parameter file: /home/grid/product/11.2.0/grid/crs/install/crsconfig_params
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Stop failed, or completed with errors.
CRS-4639: Could not contact Oracle High Availability Services
CRS-4000: Command Delete failed, or completed with errors.
CRS-4544: Unable to connect to OHAS
CRS-4000: Command Stop failed, or completed with errors.
Failure in execution (rc=-1, 0, No such file or directory) for command /etc/init.d/ohasd deinstall
Successfully deconfigured Oracle Restart stack
5.重跑root.sh
[root@stb CVU_11.2.0.3.0_grid]# /home/grid/product/11.2.0/grid/root.shPerforming root user operation for Oracle 11g
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /home/grid/product/11.2.0/grid
Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.
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: /home/grid/product/11.2.0/grid/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'dba'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node stb successfully pinned.
Adding Clusterware entries to upstart
stb 2013/04/24 16:36:29 /home/grid/product/11.2.0/grid/cdata/stb/backup_20130424_163629.olr
Successfully configured Oracle Grid Infrastructure for a Standalone Server
Finished!
- Occur "libcap.so.1: cannot open shared object file" during Install 11g GI when running root.sh
- RAC执行root.sh报libcap.so.1: cannot open shared object file
- 安装RAC执行root.sh时报错:error while loading shared libraries: libcap.so.1: cannot open shared object file:
- RAC 执行root.sh 报错 libcap.so.1: cannot open shared object file: No such file or directory
- Redhat 6.4安装ORACLE11R2 ,运行root.sh报错:“libcap.so.1:cannot open shared object file”
- ls: error while loading shared libraries: libcap.so.2: cannot open shared object file: No such file
- libESR_Shared.so: cannot open shared object file
- libaio.so.1: cannot open shared object file
- libelf.so.1: cannot open shared object file
- libz.so.1: cannot open shared object file
- libaio.so.1: cannot open shared object file解决方法
- **libaio.so.1: cannot open shared object file解决方法**
- ArchLinux install virtualbox error libQtCore.so.4: cannot open shared object file: No such file..
- clscfg.bin: error while loading shared libraries: libcap.so.1: cannot open shared
- db2start: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No suc
- ./server: error while loading shared libraries: libzmq.so.1: cannot open shared object file: No such
- error while loading shared libraries: libpcre.so.1: cannot open shared object file
- error while loading shared libraries: libz.so.1: cannot open shared object file
- android开发-高级应用、嵌入式底层资料和千人交流群
- 创业公司开发资源整理(迭代中)
- hdu2509 Be the Winner (尼姆博弈)
- Oracle、PostgreSQL、Sybase数据库导入导出命令说明和示例
- SQLite介绍
- Occur "libcap.so.1: cannot open shared object file" during Install 11g GI when running root.sh
- 通过JS,选取radio时显示/隐藏table的功能
- hdu 4696 反状态压缩+动态规划
- matlab:imfill学习
- Android记录2--制作表格样式+由下往上动画弹出效果实现
- ExtJs(一)
- VIM使用技巧(转)
- ubuntu 10.04下的配置tftp服务器
- android 随手记--播放铃声