您好,登錄后才能下訂單哦!
執行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
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。