最近正在研究 Oracle RAC 的安裝,弄了好久終於把該死的 clusterware 安裝起來,途中遇到的 bug、問題可真不少,做個筆記。

1.  Linux 版本問題,請在安裝的時候,下指令 ./runInstaller -ignoreSysPrereqs

2. OCR、vote disk,雖然規格上有說可以使用 ASM、ocfs2、NFS、RAW,不過實際安裝,卻只有 raw 可以使用。

3. 安裝到最後有個程序,要執行 root.sh,通常這個部分會在其他節點出現錯誤,執行以下程序:
$ORA_CRS_HOME/bin # ./oifcfg setif -global eth0/10.80.1.0:public
$ORA_CRS_HOME/bin # ./oifcfg setif -global eth1/192.168.1.0:cluster_interconnect
### 執行以下兩個指令確認
$ORA_CRS_HOME/bin # ./oifcfg getif
$ORA_CRS_HOME/bin # ./oifcfg iflist

4. 以上作業確認後,需要到 $ORA_CRS_HOME/bin 執行 vipca,但是應該會發生 libptthread.so.0 的錯誤,詳細如下:
.....(略)
Running vipca(silent) for configuring nodeapps
/opt/oracle/product/10gR2/crs/jdk/jre//bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory

請修改以下兩個檔案:
$ORA_CRS_HOME/bin/vipca 內容中的
      arch=`uname -m`
       if [ "$arch" = "i686" -o "$arch" = "ia64" ]
       then
            LD_ASSUME_KERNEL=2.4.19
            export LD_ASSUME_KERNEL
       fi
修改為
      arch=`uname -m`
       ## if [ "$arch" = "i686" -o "$arch" = "ia64" ]
       ## then
       ##      LD_ASSUME_KERNEL=2.4.19
       ##      export LD_ASSUME_KERNEL
       ## fi

$ORA_CRS_HOME/bin/srvctl 內容中的
#Remove this workaround when the bug 3937317 is fixed
LD_ASSUME_KERNEL=2.4.19
export LD_ASSUME_KERNEL
修改為
#Remove this workaround when the bug 3937317 is fixed
## LD_ASSUME_KERNEL=2.4.19
## export LD_ASSUME_KERNEL

或者在 export LD_ASSUME_KERNEL 的下一行,加上 unset  LD_ASSUME_KERNEL 也行。


vipca就可以正確執行了,把相關界面都定義完成確認後,就可以回到最原始的安裝畫面(提示執行 root.sh 的那個),點下 OK。

Posted by 椰子殼

2010/07/20 18:17 2010/07/20 18:17
Response
No Trackback , No Comment
RSS :
http://www.homeweb.idv.tw/rss/response/584


블로그 이미지

椰子殼網誌。 紀錄生活

- 椰子殼

Notices

Authors

  1. 椰子殼

Archives

Calendar

«   2010/07   »
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

Site Stats

Total hits:
418396
Today:
28
Yesterday:
139