RAC srvctl 命令报 libpthread.so.0 cannot open shared object file No such file or directory 解决方法
来源:互联网 发布:如何制止网络暴力 编辑:程序博客网 时间:2024/06/04 21:44
运行srvctl 命令报错:
[oracle@rac1 u01]$ srvctl remove asm -n rac1
/u01/app/oracle/product/10.2.0/db_1/jdk/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
开始还觉得奇怪,因为我在安装CRS的时候,已经修改了vipca 和ORA_CRS_HOME下srvctl命令的中参数。 即注释掉了LD_ASSUME_KERNEL参数。
但是运行的时候,还是报了这个错误,后来用which srvctl命令才发现了问题的所在:
[oracle@rac1 u01]$ which srvctl
/u01/app/oracle/product/10.2.0/db_1/bin/srvctl
系统调用的是ORACLE_HOME下的srvctl。所以在修改LD_ASSUME_KERNEL命令时,别忘了修改ORACLE_HOME下的,如果变量是将ORACLE_HOME放在前面,那么就会调用ORACLE_HOME下的srvctl命令。
[oracle@rac2 bin]$ echo $PATH
.:.:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/NX/bin:/home/oracle/bin:/home/oracle/bin:/u01/app/oracle/product/10.2.0/db_1/bin:/u01/app/oracle/product/crs/bin:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin:/u01/app/oracle/common/oracle/bin:/home/oracle/bin:/home/oracle/bin:/u01/app/oracle/product/crs/bin:/u01/app/oracle/product/10.2.0/db_1/bin:/u01/app/oracle/product/crs/bin:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin:/u01/app/oracle/common/oracle/bin
环境变量中的设置:
[oracle@rac2 ~]$ vi ~/.bash_profile
...
export PATH=.:${PATH}:$HOME/bin:$ORACLE_HOME/bin:$ORA_CRS_HOME/bin
...
修改一下环境变量中PATH的顺序:
export PATH=.:${PATH}:$HOME/bin:$ORA_CRS_HOME/bin:$ORACLE_HOME/bin
重新开了一个ssh窗口,因为在连接的时候才会加载profile文件,srvctl 的位置变成了ORA_CRS_HOME下面的了。
[oracle@rac2 ~]$ which srvctl
/u01/app/oracle/product/crs/bin/srvctl
注释的方法有两种:
(1)使用unset
#Remove this workaround when the bug 3937317 is fixed
LD_ASSUME_KERNEL=2.4.19
export LD_ASSUME_KERNEL
unset LD_ASSUME_KERNEL
(2)直接注释掉:
#Remove this workaround when the bug 3937317 is fixed
#LD_ASSUME_KERNEL=2.4.19
#export LD_ASSUME_KERNEL
- RAC srvctl 命令报 libpthread.so.0 cannot open shared object file No such file or directory 解决方法
- RAC srvctl 命令报 libpthread.so.0 cannot open shared object file No such file or directory 解决方法
- RAC srvctl 命令报 libpthread.so.0 cannot open shared object file No such file or directory 解决方法
- 10g RAC srvctl 命令报 libpthread.so.0 cannot open shared object file No such file or directory
- RAC 执行root.sh 报错 libcap.so.1: cannot open shared object file: No such file or directory
- 【报错】ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
- tensorflow 报错 libcusolver.so.8.0: cannot open shared object file: No such file or directory
- error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file
- error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file
- error:libraries: libcloog.so.0: cannot open shared object file: No such file or directory
- libapr-1.so.0 cannot open shared object file no such file or directory
- libexpat.so.0: cannot open shared object file: No such file or directory
- libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
- libcrypto.so.1.0.0: cannot open shared object file: No such file or directory解决方案
- ImportError: libmkldnn.so.0: cannot open shared object file: No such file or directory
- ImportError: libmkldnn.so.0: cannot open shared object file: No such file or directory
- ImportError: libcaffe.so.1.0.0: cannot open shared object file: No such file or directory
- shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
- C#实现冒泡排序 堆栈 队列
- ZeroMQ 之 Rep/Req
- 部署XPE镜像文件到虚拟机
- HDMI接口与HDMI协议
- Eclipse “cannot be resolved to a type” error
- RAC srvctl 命令报 libpthread.so.0 cannot open shared object file No such file or directory 解决方法
- 有关strtok函数进行字符串分割
- SAP方丈-FI-确认与替代
- getResource()和getResourceAsStream以及路径问题(转)
- ACE 常用的类和样板
- 在android应用使用自定义的字体显示文字
- 目标又近了一步
- nodeJS入门例子一—全局对象之process
- Css小技巧(持续更新)