安装好RAC后执行srvctl status service -d devdb报错误:
- [oracle@rac2 ~]$ srvctl status database -d devdb
- /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
解决办法:
1.用vi编辑文件/u01/app/oracle/product/10.2.0/crs_1/bin/srvctl(每个人的环境路径可能不一样),找到如下三行,将其注释掉
- #Remove this workaround when the bug 3937317 is fixed
- #LD_ASSUME_KERNEL=2.4.19
- #export LD_ASSUME_KERNEL
- #unset LD_ASSUME_KERNEL
2.编辑.bash_profile文件修改修改环境变量PATH顺序.
- export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/sbin
修改为
- export PATH=$ORA_CRS_HOME/bin:$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/sbin
3.重新登录系统使环境变量生效
4.再次执行srvctl status database -d devdb(这里我只启动了节点2)
- [oracle@rac2 ~]$ srvctl status database -d devdb
- Instance devdb1 is not running on node rac1
- Instance devdb2 is running on node rac2
阅读(1253) | 评论(0) | 转发(0) |