码迷,mamicode.com
首页 > 其他好文 > 详细

执行srvctl报错 :error while loading shared libraries: libpthread.so.0:

时间:2014-06-02 04:09:00      阅读:285      评论:0      收藏:0      [点我收藏+]

标签:执行srvctl报错 :error while loading shared libraries: libpthread.so.0:

 
 执行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 programs

PATH=$PATH:$HOME/bin

export 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.19
  export LD_ASSUME_KERNEL

  如下即可

#Remove this workaround when the bug 3937317 is fixed
       arch=`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


本文出自 “O Record” 博客,请务必保留此出处http://evils798.blog.51cto.com/8983296/1420923

执行srvctl报错 :error while loading shared libraries: libpthread.so.0:,布布扣,bubuko.com

执行srvctl报错 :error while loading shared libraries: libpthread.so.0:

标签:执行srvctl报错 :error while loading shared libraries: libpthread.so.0:

原文地址:http://evils798.blog.51cto.com/8983296/1420923

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!