Solaris裸裝置安裝三節點RAC102(三)

yangtingkun發表於2011-01-28

利用裸裝置安裝Solaris上的三節點Oracle 10.2 RAC

這一篇主要討論ORACLE的軟體安裝。

Solaris裸裝置安裝三節點RAC102(一):http://yangtingkun.itpub.net/post/468/512772

Solaris裸裝置安裝三節點RAC102(二):http://yangtingkun.itpub.net/post/468/512835

 

 

在上一篇文章中已經將CLUSTERWARE軟體安裝完畢,下面準備安裝資料庫。

首先檢查系統是否滿足資料庫的安裝需求:

# su - oracle
Sun Microsystems Inc.   SunOS 5.8       Generic Patch   October 2001
$ cd /data/cluster_disk/cluvfy
bash-2.03$ ./runcluvfy.sh stage -pre dbinst -n racnode1,racnode2,racnode3

Performing pre-checks for database installation

Checking node reachability...
Node reachability check passed from node "racnode1".


Checking user equivalence...
User equivalence check passed for user "oracle".

Checking administrative privileges...
User existence check passed for "oracle".
Group existence check passed for "oinstall".
Membership check for user "oracle" in group "oinstall" [as Primary] passed.
Group existence check passed for "dba".
Membership check for user "oracle" in group "dba" passed.

Administrative privileges check passed.

Checking node connectivity...

Node connectivity check passed for subnet "172.25.0.0" with node(s) racnode3,racnode2,racnode1.
Node connectivity check passed for subnet "172.25.198.0" with node(s) racnode3,racnode2,racnode1.
Node connectivity check passed for subnet "10.0.0.0" with node(s) racnode3,racnode2,racnode1.

Suitable interfaces for the private interconnect on subnet "172.25.0.0":
racnode3 ce0:172.25.198.226
racnode2 ce0:172.25.198.223
racnode1 ce0:172.25.198.222

Suitable interfaces for the private interconnect on subnet "172.25.198.0":
racnode3 ce0:172.25.198.227
racnode2 ce0:172.25.198.225
racnode1 ce0:172.25.198.224

ERROR:
Could not find a suitable set of interfaces for VIPs.

Node connectivity check failed.


Checking system requirements for 'database'...
Total memory check passed.
Free disk space check passed.
Swap space check failed.
Check failed on nodes:
        racnode3,racnode2,racnode1
System architecture check passed.
Operating system version check failed.
Check failed on nodes:
        racnode3
Operating system patch check failed for "112760-05".
Check failed on nodes:
        racnode3,racnode2,racnode1
Operating system patch check failed for "108993-45".
Check failed on nodes:
        racnode3
Operating system patch check failed for "113800-06".
Check failed on nodes:
        racnode3,racnode2,racnode1
Operating system patch check failed for "112763-13".
Check failed on nodes:
        racnode3,racnode2,racnode1
Package existence check passed for "SUNWarc".
Package existence check passed for "SUNWbtool".
Package existence check passed for "SUNWhea".
Package existence check passed for "SUNWlibm".
Package existence check passed for "SUNWlibms".
Package existence check passed for "SUNWsprot".
Package existence check passed for "SUNWsprox".
Package existence check passed for "SUNWtoo".
Package existence check passed for "SUNWi1of".
Package existence check passed for "SUNWi1cs".
Package existence check passed for "SUNWi15cs".
Package existence check passed for "SUNWxwfnt".
Package existence check passed for "SUNWlibC".
Package existence check failed for "SUNWscucm:3.1".
Check failed on nodes:
        racnode3,racnode2,racnode1
Package existence check failed for "SUNWudlmr:3.1".
Check failed on nodes:
        racnode3,racnode2,racnode1
Package existence check failed for "SUNWudlm:3.1".
Check failed on nodes:
        racnode3,racnode2,racnode1
Package existence check failed for "ORCLudlm:Dev_Release_06/11/04,_64bit_3.3.4.8_reentrant".
Check failed on nodes:
        racnode3,racnode2,racnode1
Package existence check failed for "SUNWscr:3.1".
Check failed on nodes:
        racnode3,racnode2,racnode1
Package existence check failed for "SUNWscu:3.1".
Check failed on nodes:
        racnode3,racnode2,racnode1
Kernel parameter check failed for "SEMMNI".
Check failed on nodes:
        racnode3,racnode2
Kernel parameter check failed for "SEMMNS".
Check failed on nodes:
        racnode3,racnode2
Kernel parameter check failed for "SEMMSL".
Check failed on nodes:
        racnode3,racnode2
Kernel parameter check failed for "SEMVMX".
Check failed on nodes:
        racnode3,racnode2
Kernel parameter check failed for "SHMMAX".
Check failed on nodes:
        racnode3
Kernel parameter check failed for "SHMMIN".
Check failed on nodes:
        racnode3
Kernel parameter check failed for "SHMMNI".
Check failed on nodes:
        racnode3
Kernel parameter check failed for "SHMSEG".
Check failed on nodes:
        racnode3
Group existence check passed for "dba".
Group existence check passed for "oinstall".
User existence check passed for "oracle".
User existence check passed for "nobody".

System requirement failed for 'database'

Checking CRS integrity...

Checking daemon liveness...
Liveness check passed for "CRS daemon".

Checking daemon liveness...
Liveness check passed for "CSS daemon".

Checking daemon liveness...
Liveness check passed for "EVM daemon".

Checking CRS health...
CRS health check passed.

CRS integrity check passed.

Checking node application existence...


Checking existence of VIP node application (required)
Check passed.

Checking existence of ONS node application (optional)
Check passed.

Checking existence of GSD node application (optional)
Check passed.


Pre-check for database installation was unsuccessful on all the nodes.

上一篇文章已經提到了VIP的錯誤原因。其實現在VIP已經繫結上了,但是oracle仍然沒有認出來。接著的swap空間不足的錯誤可以忽略,在第一篇文章中已經進行了檢查,系統中有足夠的swap空間。接著報了4個補丁沒有打,但是系統中目前安裝了這4個補丁,但是安裝的版本比Oracle需要的更高,估計Oracle沒有認出來。下面在對一些系統包進行檢查時失敗,這些包是和SunCluster有關的包,由於安裝RAC準備使用OracleClusterware,因此這些錯誤也可以忽略。最後一個錯誤是關於系統核心引數設定的。這寫設定racnode1racnode2完全一致,而只報了racnode2racnode3的設定有問題,懷疑是Oracle的檢查程式的問題。

由於上面所有的錯誤都是可以忽略的,下面開始資料庫的安裝:將Oracle的安裝檔案解壓,利用cpio idmv < 10gr2_db_sol.cpio命令展開。

在安裝之前,需要將已經配置好的所有裸裝置授權給Oracle使用者,使得Oracle使用者有足夠的空間來建立資料庫。在racnode1上:

# chown oracle:oinstall /dev/rdsk/c2t3d0s1
# chown oracle:oinstall /dev/rdsk/c2t3d0s3
# chown oracle:oinstall /dev/rdsk/c2t3d0s4
# chown oracle:oinstall /dev/rdsk/c2t3d0s5
# chown oracle:oinstall /dev/rdsk/c2t3d0s6
# chown oracle:oinstall /dev/rdsk/c2t3d1s1
.
.
.
# chown oracle:oinstall /dev/rdsk/c2t3d5s5
# chown oracle:oinstall /dev/rdsk/c2t3d5s6
# chown oracle:oinstall /dev/rdsk/c2t3d5s7

racnode2上:

# chown oracle:oinstall /dev/rdsk/c2t500601603022E66Ad0s1
# chown oracle:oinstall /dev/rdsk/c2t500601603022E66Ad0s3
# chown oracle:oinstall /dev/rdsk/c2t500601603022E66Ad0s4
# chown oracle:oinstall /dev/rdsk/c2t500601603022E66Ad0s5
# chown oracle:oinstall /dev/rdsk/c2t500601603022E66Ad0s6
# chown oracle:oinstall /dev/rdsk/c2t500601603022E66Ad1s1
.
.
.
# chown oracle:oinstall /dev/rdsk/c2t500601603022E66Ad5s6
# chown oracle:oinstall /dev/rdsk/c2t500601603022E66Ad5s7

下面可以開始安裝了,啟動Xmanager,登陸racnode1執行:

# xhost +
access control disabled, clients can connect from any host
 su - oracle
Sun Microsystems Inc.   SunOS 5.8       Generic Patch   October 2001
$ cd /data/disk1
$ ./runInstaller

啟動圖形介面後,點選next。選擇企業版,選擇簡體中文語句,點選next

設定OraDb10g_home1,由於設定了初始化引數ORACLE_HOMEOracle自動會將/data/oracle/product/10.2/database填入,直接點選next

然後進入cluster安裝模式,選擇cluster安裝,將racnode2racnode3選上,然後點選next

系統會執行檢查程式,檢查是否滿足安裝RAC資料庫的需求,檢查成功後點選next

下面有三個選擇,一個是建立資料庫,一個是配置Automatic Storage Management,最後是隻安裝軟體。由於打算使用裸裝置,這裡選擇只安裝軟體。

工具配置完成後,使用root在三個節點上執行root指令碼:

# /data/oracle/product/10.2/database/root.sh
Running Oracle10 root.sh script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /data/oracle/product/10.2/database

Enter the full pathname of the local bin directory: [/usr/local/bin]:
Creating /usr/local/bin directory...
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...


Creating /var/opt/oracle/oratab file...
Entries will be added to the /var/opt/oracle/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.

點選ok,點選exit,軟體安裝完成。

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-686478/,如需轉載,請註明出處,否則將追究法律責任。

相關文章