执行srvctl报错:errorwhileloadingsharedlibraries: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
分享名称:执行srvctl报错:errorwhileloadingsharedlibraries:libpthread.so.0:
分享路径:http://azwzsj.com/article/ppgddg.html