执行srvctl是报错error while loading shared libraries: libpthread.so.0:[oracle@rac02 ~]$ srvctl
/opt/ora10g/product/10.2.0/db_1/jdk/jre/bin/java: error while loading shared libraries: libpthread.so.0:
cannot open shared object file: No such file or directory查看srvctl命令,正确的应该在?/crs/bin目录下,而本机的却在db_1/bin目录下[oracle@rac02 ~]$ which  srvctl
/opt/ora10g/product/10.2.0/db_1/bin/srvctl查看变量设置
[oracle@rac02 ~]$ more .bash_profile
# .bash_profile# Get the aliases and functions
if [ -f ~/.bashrc ]; then. ~/.bashrc
fi# User specific environment and startup programsPATH=$PATH:$HOME/binexport PATH
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/opt/ora10g
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=RACDB1
export ORACLE_TERM=xterm
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin/
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
ulimit -u 16384 -n 65536
umask 022这列export PATH=$ORACLE_HOME/bin:$PATH 没有crs_home所以才会找到$ORACLE_HOME/bin下的srvctl$vi /home/oracle/.bash_profile增加以下信息export CRS_HOME=$ORACLE_BASE/product/10.2.0/crs修改export PATH=$ORACLE_HOME/bin:$PATH为export PATH=$CRS_HOME/bin:$ORACLE_HOME/bin:$PATH[oracle@rac02 ~]$ source  .bash_profile
[oracle@rac02 ~]$ which  srvctl
/opt/ora10g/product/10.2.0/crs/bin/srvctl找到了正确的srvctl命令$vi /opt/ora10g/product/10.2.0/crs/bin/vipca注释掉LD_ASSUME_KERNEL=2.4.19export LD_ASSUME_KERNEL如下即可#Remove this workaround when the bug 3937317 is fixedarch=`uname -m`if [ "$arch" = "i686" -o "$arch" = "ia64" -o "$arch" = "x86_64" ]then# LD_ASSUME_KERNEL=2.4.19# export LD_ASSUME_KERNEL[oracle@rac02 bin]$ srvctl 用法: srvctl <command> <object> [<options>]命令: enable|disable|start|stop|relocate|status|add|remove|modify|getenv|setenv|unsetenv|config对象: database|instance|service|nodeapps|asm|listener
有关各个命令和对象的详细帮助, 请使用:srvctl <command> <object> -h
执行srvctl 查看OCR注册的数据库信息
[oracle@rac02 ~]$ srvctl   config  database
RACDB
说明 在OCR中注册了一个数据库 即RACDB

转载于:https://blog.51cto.com/evils798/1420923

执行srvctl报错 :error while loading shared libraries: libpthread.so.0:相关推荐

  1. Oracle RAC安装过程中遇到“error while loading shared libraries libpthread.so.0”的解决办法...

    在CentOS 5上安装Oracle 10.2.0.1 RAC的cluster software的时候,在最后一步,第二个节点,执行root.sh的时候,报告error while loading s ...

  2. rac安装过程中 error while loading shared libraries libpthread.so.0 问题的解决

    rac安装过程中 error while loading shared libraries libpthread.so.0 问题的解决 2010-08-28 23:10 在CentOS 5上安装Ora ...

  3. 配置linux的jdk报错error while loading shared libraries: libjli.so

    问题描述:  执行jar命令,javac命令执行报错  javac: error while loading shared libraries: libjli.so: cannot open shar ...

  4. Ubuntu 14.04报错: error while loading shared libraries libc++.so cannot open shared object file解决

    # sudo apt-get install lib32stdc++6 # cd /usr/lib/x86_64-linux-gnu # sudo ln -sf libstdc++.so.6 libc ...

  5. ffmpeg命令报错: error while loading shared libraries: libavdevice.so.58: cannot open

    原因分析: 通过源码安装软件未进行环境变量配置,找不到启动路径 解决方案: [root@localhost local]# vi /etc/ld.so.conf 在文件中添加路径: /usr/loca ...

  6. svn: error while loading shared libraries: libsvn_client-1.so.0

    http://www.cnblogs.com/mangu-uu/archive/2012/08/23.html 定位问题的利器之strace svn安装在了tools目录外面,把文件夹移动tools/ ...

  7. linux fedora安装、运行mybase7.3.5报错:error while loading shared libraries: libpng12.so.0

    直接安装即可: sudo dnf install libpng12 dnf安装的是32位的,在64位系统下无法使用,参考我的下面这篇文章来解决: https://zhangxueliang.blog. ...

  8. Linux mtk flash_tool -error while loading shared libraries: libpng12.so.0: cannot open shared object

    运行flash_tool时报错: ./flash_tool: error while loading shared libraries: libpng12.so.0: cannot open shar ...

  9. ./utserver: error while loading shared libraries: libcrypto.so.0.9.8: cannot open shared object file

    错误0 不记得了, 解决办法,安装32位的库 yum install glibc.i686 错误1 ./utserver: error while loading shared libraries: ...

最新文章

  1. 更改Windows Server Core 2008计算机名字和配置网络连接
  2. ctfmn.exe——藏在字体目录FONTS下的***
  3. Java-Web JSTL标签库、自定义标签库和MVC设计模式
  4. 计算机培训研修日志,2021年计算机培训研修日志
  5. C++ 异常 与 ”为什么析构函数不能抛出异常“ 问题
  6. leetcode105. 从前序与中序遍历序列构造二叉树(递归)
  7. Hibernate细节
  8. ENtEntityFranework 的简单应用(一)
  9. ListView的两种使用方法--Android学习笔记
  10. Windows Media Services 9 系列常见问题解答
  11. RN与原生交互(一)——基本页面跳转
  12. 斯坦福大学CS143编译原理课程笔记:1.编译器与解释器简介
  13. 在使用avalon框架的时候,用ms-duplex双工绑定,在template上是有数据渲染的,但是js里面却是undefined...
  14. java new char 初始化_java考试复习
  15. python 秘钥_python – 使用ssh密钥加密和解密密码
  16. micropython支持stm32型号_单片机仿真软件Proteus,可支持程序联调
  17. 《开源安全运维平台OSSIM最佳实践》媒体推荐
  18. dto转化 vo_微服务篇-DTO、VO快速转换解决方案
  19. 美团上线美团直播助手
  20. 强力推荐—20款免费备份文件软件

热门文章

  1. win10笔记本电脑桌面发蓝、呈现负片的颜色,以及键盘中个别键失灵
  2. windows10下编译dllib报错: ERROR: Failed building wheel for dlib
  3. Linux中关于useradd、chmod、chown、getfacl、setfact等权限设置
  4. LeetCode House Robber II(动态规划)
  5. JVM - 内存管理
  6. 「BZOJ 3994」「SDOI 2015」约数个数和「莫比乌斯反演」
  7. 也谈TDD,以及三层架构、设计模式、ORM……没有免费的午餐,选择了,必付出代价...
  8. 【转】Virtualbox虚拟机配置安装CentOS 6.5图文教程
  9. TCP连接建立系列 — 服务端接收ACK段(二)
  10. C#和SqlServer中处理时间格式问题