[转]RAC 执行Srvctl命令提示找不到库文件错误

安装好RAC后执行srvctl status service -d devdb报错误:
  1. [oracle@rac2 ~]$ srvctl status database -d devdb
  2. /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(每个人的环境路径可能不一样),找到如下三行,将其注释掉

  1. #Remove this workaround when the bug 3937317 is fixed
  2. #LD_ASSUME_KERNEL=2.4.19
  3. #export LD_ASSUME_KERNEL
  4. #unset LD_ASSUME_KERNEL

2.编辑.bash_profile文件修改修改环境变量PATH顺序.

  1. export PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/sbin

修改为

  1. 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)

  1. [oracle@rac2 ~]$ srvctl status database -d devdb
  2. Instance devdb1 is not running on node rac1
  3. Instance devdb2 is running on node rac2

原文地址:http://blog.chinaunix.net/uid-77311-id-3028744.html

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/728254/viewspace-735497/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/728254/viewspace-735497/

你可能感兴趣的:(数据库)