zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    LAMP网站架构解释
    ftp--pureftpd1.0.46
    给远程主机起别名
    ssh修改端口号并进行远程访问
    ssh使两台机器建立连接
    Linux搭建svn服务
    centos上git搭建
    centos上Jenkins搭建
    kvm安装准备
    服务器Java环境配置
  • 原文地址:https://www.cnblogs.com/nazeebodan/p/3575194.html
Copyright © 2011-2022 走看看