欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

執(zhí)行srvctl報錯:errorwhileloadingsharedlibraries:libpthread.so.0:

 
 執(zhí)行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命令,正確的應(yīng)該在?/crs/bin目錄下,而本機(jī)的卻在db_1/bin目錄下

[oracle@rac02 ~]$ which  srvctl
/opt/ora10g/product/10.2.0/db_1/bin/srvctl


查看變量設(shè)置
[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
有關(guān)各個命令和對象的詳細(xì)幫助, 請使用:
    srvctl <command> <object> -h
執(zhí)行srvctl 查看OCR注冊的數(shù)據(jù)庫信息
[oracle@rac02 ~]$ srvctl   config  database
RACDB
說明 在OCR中注冊了一個數(shù)據(jù)庫 即RACDB

本文名稱:執(zhí)行srvctl報錯:errorwhileloadingsharedlibraries:libpthread.so.0:
本文URL:http://chinadenli.net/article16/ppgddg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站設(shè)計網(wǎng)站設(shè)計、企業(yè)網(wǎng)站制作、云服務(wù)器、網(wǎng)站策劃、

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)公司