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

上一篇:QT5-控件-QSpinBox和QDoubleSpinBox(用于通过控件调整整数和小数)


下一篇:AndroidStudio添加依赖库