• 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

  • 相关阅读:
    KSTORE日常工作遇到问题总结
    调用bat文件执行java文件
    腾讯课堂十大Excel函数
    《将博客搬至CSDN》
    oracle 累加功能,累加百分比
    验证身份证是否合法
    远程登录修改密码
    二叉树的遍历
    nginx启动、重启、关闭
    状态模式-State-订单状态
  • 原文地址:https://www.cnblogs.com/nazeebodan/p/3575194.html
Copyright © 2020-2023  润新知