10gRAC运行srvctl报错error while loading shared libraries:

数据库10g才会有这个错,因为11g的grid和oracle是分开的。

[oracle@news01 orcl]$ srvctl
/u01/app/oracle/db_1/jdk/jre/bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

[oracle@news01 orcl]$ which srvctl
/u01/app/oracle/db_1/bin/srvctl

发现原来是执行的db_1下面的srvctl,而不是crs目录下面的。修改profile文件,把path里面CRS_HOME的位置优先于ORACLE_HOME,执行。

[oracle@news01 orcl]$ vi ~/.bash_profile
[oracle@news01 orcl]$ . ~/.bash_profile
[oracle@news01 orcl]$ which srvctl
/u01/app/oracle/db_1/bin/srvctl
[oracle@news01 orcl]$ $CRS_HOME/bin/srvctl
Usage: srvctl <command> <object> [<options>]
command: enable|disable|start|stop|relocate|status|add|remove|modify|getenv|setenv|unsetenv|config
objects: database|instance|service|nodeapps|asm|listener
For detailed help on each command and object and its options use:
srvctl <command> <object> -h

发现仍然报错,退出,再登陆就OK了

[oracle@news01 ~]$ exit
logout
[root@news01 nfs]# su - oracle
[oracle@news01 ~]$ which srvctl
/u01/app/oracle/crs_1/bin/srvctl

posted @ 2014-03-01 16:15  纳兹波蛋  阅读(218)  评论(0编辑  收藏  举报