Solaris8上安裝RAC10202環境(三)
前一陣一直在測試ORACLE 10R2的RAC環境在Solaris上的安裝。碰到了很多的問題,不過最後總算成功了,這裡簡單總結一下安裝步驟,以及碰到的問題和解決方法。
這一篇主要討論ORACLE的軟體安裝。
作業系統準備工作可以參考:Solaris8上安裝RAC10202環境(一):http://yangtingkun.itpub.net/post/468/271797
Oracle的Clusterware安裝過程可以參考:Solaris8上安裝RAC10202環境(二):http://yangtingkun.itpub.net/post/468/271812
在上一篇文章中已經將CLUSTERWARE軟體安裝完畢,下面準備安裝資料庫。
首先檢查系統是否滿足資料庫的安裝需求:
# su - oracle
Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
$ cd /data/cluster_disk/cluvfy
$ ./runcluvfy.sh stage -pre dbinst -n racnode1,racnode2
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) racnode2,racnode1.
Node connectivity check passed for subnet "172.25.198.0" with node(s) racnode2,racnode1.
Node connectivity check passed for subnet "10.0.0.0" with node(s) racnode2,racnode1.
Suitable interfaces for the private interconnect on subnet "172.25.0.0":
racnode2 ce0:172.25.198.223
racnode1 ce0:172.25.198.222
Suitable interfaces for the private interconnect on subnet "172.25.198.0":
racnode2 ce0:172.25.198.225
racnode1 ce0:172.25.198.224
Suitable interfaces for the private interconnect on subnet "10.0.0.0":
racnode2 ce1:10.0.0.2
racnode1 ce1:10.0.0.1
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:
racnode2,racnode1
System architecture check passed.
Operating system version check passed.
Operating system patch check failed for "112760-05".
Check failed on nodes:
racnode2,racnode1
Operating system patch check passed for "108993-45".
Operating system patch check failed for "113800-06".
Check failed on nodes:
racnode2,racnode1
Operating system patch check failed for "112763-13".
Check failed on nodes:
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:
racnode2,racnode1
Package existence check failed for "SUNWudlmr:3.1".
Check failed on nodes:
racnode2,racnode1
Package existence check failed for "SUNWudlm:3.1".
Check failed on nodes:
racnode2,racnode1
Package existence check failed for "ORCLudlm:Dev_Release_06/11/04,_64bit_3.3.4.8_reentrant".
Check failed on nodes:
racnode2,racnode1
Package existence check failed for "SUNWscr:3.1".
Check failed on nodes:
racnode2,racnode1
Package existence check failed for "SUNWscu:3.1".
Check failed on nodes:
racnode2,racnode1
Kernel parameter check failed for "SEMMNI".
Check failed on nodes:
racnode2
Kernel parameter check failed for "SEMMNS".
Check failed on nodes:
racnode2
Kernel parameter check failed for "SEMMSL".
Check failed on nodes:
racnode2
Kernel parameter check failed for "SEMVMX".
Check failed on nodes:
racnode2
Kernel parameter check passed for "SHMMAX".
Kernel parameter check passed for "SHMMIN".
Kernel parameter check passed for "SHMMNI".
Kernel parameter check passed for "SHMSEG".
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準備使用Oracle的Clusterware,因此這些錯誤也可以忽略。最後一個錯誤是關於系統核心引數設定的。這寫設定racnode1和racnode2完全一致,而只報了racnode2的設定有問題,懷疑是Oracle的檢查程式的問題。
由於上面所有的錯誤都是可以忽略的,下面開始資料庫的安裝:將Oracle的安裝檔案解壓,利用cpio –idmv < 10gr2_db_sol.cpio命令展開。
在安裝之前,需要將已經配置好的所有裸裝置授權給Oracle使用者,使得Oracle使用者有足夠的空間來建立資料庫。在racnode1上:
# chown oracle:oinstall /dev/rdsk/c2t0d0s1
# chown oracle:oinstall /dev/rdsk/c2t0d0s3
# chown oracle:oinstall /dev/rdsk/c2t0d0s4
# chown oracle:oinstall /dev/rdsk/c2t0d0s5
# chown oracle:oinstall /dev/rdsk/c2t0d0s6
# chown oracle:oinstall /dev/rdsk/c2t0d1s1
.
.
.
# chown oracle:oinstall /dev/rdsk/c2t0d5s5
# chown oracle:oinstall /dev/rdsk/c2t0d5s6
# chown oracle:oinstall /dev/rdsk/c2t0d5s7
在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_HOME,Oracle自動會將/data/oracle/product/10.2/database填入,直接點選next。
然後進入cluster安裝模式,選擇cluster安裝,將racnode2選上,然後點選next。
系統會執行檢查程式,檢查是否滿足安裝RAC資料庫的需求,檢查成功後點選next。
下面有三個選擇,一個是建立資料庫,一個是配置Automatic Storage Management,最後是隻安裝軟體。為了簡化安裝,這裡選擇使用ASM。因此這裡選擇第二個,配置ASM,並輸入兩次ASM例項的SYS密碼。點選next。
下面是配置ASM磁碟組資訊,預設Disk Group Name的名稱是DATA,這裡改為DISK。由於共享磁碟已經採用了RAID0這裡在冗餘選項處選擇了Extenal。
選擇所有可用的磁碟,點選next。
出現彙總頁面後,點選install開始安裝。
安裝結束後,Oracle自動執行Oracle Net Configure Assistant工具和Oracle Database Configuration Assistant工具。
工具配置完成後,使用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,軟體安裝和ASM的配置完成。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/4227/viewspace-69205/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Solaris8上安裝RAC10202環境(六)
- Solaris8上安裝RAC10202環境(四)
- Solaris8上安裝RAC10202環境(二)
- Solaris8上安裝RAC10202環境(一)
- CentOS上JETTY環境的配置安裝CentOSJetty
- 【Linux】LNMP 環境搭建(上):安裝篇LinuxLNMP
- [Linux] LNMP 環境搭建(上):安裝篇LinuxLNMP
- Clojure執行環境在windows上安裝Windows
- Solaris8安裝筆記筆記
- 三、偽分佈環境下安裝hbase
- Python 環境配置(三)安裝pytorchPythonPyTorch
- LNMP 環境安裝LNMP
- golang環境安裝Golang
- swoft環境安裝
- futter環境安裝
- 安裝LNMP環境LNMP
- 在Ubuntu上安裝Drone持續整合環境Ubuntu
- Infer 在 Mac 上的安裝和環境配置Mac
- 如何在Windows上安裝JAVA開發環境WindowsJava開發環境
- 在Ubuntu16.04上安裝LEMP環境Ubuntu
- Windows 環境下 Python 環境安裝WindowsPython
- 如何在Ubuntu 20.04上安裝Unity桌面環境UbuntuUnity
- 在linux,windows上安裝rubyonrails開發環境LinuxWindowsAI開發環境
- LEMP環境搭建及配置(三)安裝MySQL5.6MySql
- Ubuntu 環境安裝 phpunitUbuntuPHP
- macOS 安裝 LNMP 環境MacLNMP
- brew lnmp 環境安裝LNMP
- dapr 環境安裝指南
- Windows 環境安裝LdapWindowsLDA
- Mac GO 環境安裝MacGo
- Pytorch環境安裝PyTorch
- Centos 安裝 erlang 環境CentOS
- zabbix環境安裝搭建
- PyOpenGl 1 -- 環境安裝
- zabbix安裝中文環境
- Windos環境安裝RocketMQMQ
- Windows環境安裝ScrapyWindows
- Debian環境中安裝git伺服器Gogs(上)Git伺服器Go