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

  • 相关阅读:
    Eclipse项目上传和下载到码云上
    java.lang.IllegalArgumentException,java.util.zip.ZipException 解决办法
    #{}和${}的区别
    Lambda 表达式
    存储器的按字寻址和按字节寻址
    二叉树的三种遍历方式
    线性表和链表
    java泛型理解
    java字符输入输出流
    applet的生命周期
  • 原文地址:https://www.cnblogs.com/nazeebodan/p/3575194.html
Copyright © 2011-2022 走看看