使用SRVCTL时报错:error while loading shared libraries
来源:互联网 发布:php校园新闻发布系统 编辑:程序博客网 时间:2024/05/16 12:56
1.报错如下:
[oracle@rac1 ~]$ srvctl add service -d rac -s test -r "rac1"
/u01/app/oracle/product/dbhome_1/jdk/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory[oracle@rac1 ~]$ which srvctl --查看此命令,是在ORACLE_HOME下,正常应该是在CRS_HOME下。
/u01/app/oracle/product/dbhome_1/bin/srvctl
2.解决:修改环境变量,在PATH中将CRS_HOME放前面
[oracle@rac1 ~]$ vi .bash_profile
将$ORA_CRS_HOME/bin:放到$ORACLE_HOME/bin:前面----原来是在后面PATH=$ORA_CRS_HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH:$HOME/bin:$ASM_HOME/bin
[oracle@rac1 ~]$ which srvctl
/u01/app/oracle/product/dbhome_1/bin/srvctl
[oracle@rac1 ~]$ source .bash_profile
/u01/app/oracle/product/crs/bin/srvctl
[oracle@rac1 ~]$ srvctl add service -d rac -s test -r "rac1" --可以正常使用。
0 0
- 使用SRVCTL时报错:error while loading shared libraries
- 执行srvctl报错 :error while loading shared libraries: libpthread.so.0:
- srvctl报错 :error while loading shared libraries: libpthread.so.0
- linux使用wkhtmltopdf报错error while loading shared libraries:
- glodengate配置时报ggsci: error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- error while loading shared libraries
- <java——多线程>
- week 11 67
- 【中断异常】软中断与Bottom Half
- Not get deviceToken yet极光推送出错
- .net2.0的DirectX.dll和Directsound.dll怎么使用在.net4.0上。
- 使用SRVCTL时报错:error while loading shared libraries
- Project Ara 手机 价格区间与性能问题
- 升级到Ubuntu 14.04后的中文输入问题
- ZOJ-1520
- 北大ACM校内赛解题报告
- (int&)a和(int)a的区别
- 一致性hash算法 - consistent hashing
- spring组件扫描<context:component-scan/>使用详解
- C语言快速排序算法代码分析