rac 命令 srvctl 報錯

來源:互聯網
上載者:User

1、解決目錄問題
 
[ora@rac1-21 bin]$ srvctl
/u01/Oracle/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
 
[ora@rac1-21 bin]$ which srvctl
/u01/oracle/product/10.2.0/db_1/bin/srvctl
 
[ora@rac1-21 bin]$ echo $PATH
/u01/oracle/product/10.2.0/db_1/bin:/usr/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/ora/bin:/u01/oracle/product/10.2.0/crs_1/bin
 
其實srvctl應該是在/u01/oracle/product/10.2.0/crs_1/bin目錄下的。但是因為我們~/.bash_profile  內 PATH的順序問題。所以修改了一下
export PATH=.:${PATH}:$HOME/bin:$ORA_CRS_HOME/bin:$ORACLE_HOME/bin
 
這裡也提示我們PATH是有順序更好。
 
 
2、解決BUG問題
 
接著使用srvctl 還是報錯。想想我們vipca前,添加了unset  這裡,我們需要編輯srvctl注釋
#Remove this workaround when the bug 3937317 is fixed
#LD_ASSUME_KERNEL=2.4.19
#export LD_ASSUME_KERNEL
 
 
[ora@rac2-22 ~]$ srvctl --help
用法: srvctl   []
    命令: enable|disable|start|stop|relocate|status|add|remove|modify|getenv|setenv|unsetenv|config
    對象: database|instance|service|nodeapps|asm|listener
有關各個命令和對象的詳細協助, 請使用:
    srvctl   -h

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.