Oracle系列:安裝Oracle RAC資料庫(二)

來源:互聯網
上載者:User

緊接著上面的文章:http://ixdba.blog.51cto.com/2895551/880511

14:安裝Oracle Clusterware

1)解壓軟體包
 這裡假定資料庫所有軟體放在了/rac目錄下,首先需要解壓Oracle的兩個軟體包,操作如下:
[root@node-rac1 rac]#ls
linux_11gR1_database_1013.zip linux_x86_11gR1_clusterware.zip
[root@node-rac1 rac]#unzip linux_x86_11gR1_clusterware.zip
[root@node-rac1 rac]#unzip linux_11gR1_database_1013.zip
2)安裝補丁包
 解壓完成,安裝補丁包
[root@node-rac1 rac]#/rac/clusterware/rpm
[root@node-rac1 rac]#rpm -Uvh cvuqdisk-1.0.1-1.rpm
在節點node-rac1安裝完成後,繼續在node-rac2進行補丁安裝。
3)驗證安裝環境
 在開始安裝之前,可以使用oracle自動的一個檢測指令碼驗證系統內容是否可以進行安裝,以oracle身份登入系統,執行如下命令:
[oracle@node-rac1 ~]$/rac/clusterware/runcluvfy.sh stage -pre crsinst -n node-rac1,node-rac2 -verbose
 4)開始安裝
以oracle使用者登入Linux圖形介面,然後執行安裝指令碼:
[oracle@node-rac1 ~]$ cd /rac/clusterware/
[oracle@node-rac1 clusterware]$ ./runInstaller
接著就會彈出圖形安裝嚮導介面,安裝過程非常簡單,這裡僅僅給出安裝圖解,所有操作內容以為準,不做描述。

650) this.width=650;" border="0" alt="" src="http://www.bkjia.com/uploads/allimg/131229/20114432L-0.png" /> 

650) this.width=650;" border="0" alt="" src="http://www.bkjia.com/uploads/allimg/131229/201144I28-1.png" /> 

650) this.width=650;" border="0" alt="" src="http://www.bkjia.com/uploads/allimg/131229/201144N15-2.png" />

650) this.width=650;" border="0" alt="" src="http://www.bkjia.com/uploads/allimg/131229/20114423L-3.png" />

 

650) this.width=650;" border="0" alt="" src="http://www.bkjia.com/uploads/allimg/131229/20114411a-4.png" />

 

650) this.width=650;" border="0" alt="" src="http://www.bkjia.com/uploads/allimg/131229/2011443423-5.png" /> 

 

650) this.width=650;" border="0" alt="" src="http://www.bkjia.com/uploads/allimg/131229/2011444b1-6.png" />

 

650) this.width=650;" border="0" alt="" src="http://www.bkjia.com/uploads/allimg/131229/2011442Y4-7.png" />

 

650) this.width=650;" border="0" alt="" src="http://www.bkjia.com/uploads/allimg/131229/20114441X-8.png" />

 

650) this.width=650;" border="0" alt="" src="http://www.bkjia.com/uploads/allimg/131229/2011442636-9.png" /> 

 

650) this.width=650;" border="0" alt="" src="http://www.bkjia.com/uploads/allimg/131229/2011442c5-10.png" />

根據安裝嚮導提示,以root使用者身份在所有節點上分別執行上述兩個指令碼,要一個節點一個節點地執行,在node-rac1執行root.sh時的資訊如下:
[root@node-rac1 crs]# ./root.sh
WARNING: directory '/app/oracrs/product/11.0.6' is not owned by root
WARNING: directory '/app/oracrs/product' is not owned by root
/etc/oracle does not exist. Creating it now.
……
node 1: node-rac1 node-priv1 node-rac1
node 2: node-rac2 node-priv2 node-rac2
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Now formatting voting device: /dev/raw/raw3
 Now formatting voting device: /dev/raw/raw4
Now formatting voting device: /dev/raw/raw5
 Format of 3 voting devices complete.
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
Cluster Synchronization Services is active on these nodes.
        node-rac1
Cluster Synchronization Services is inactive on these nodes.
        node-rac2
Local node checking complete. Run root.sh on remaining nodes to start CRS daemons.


繼續在node-rac2執行root.sh指令碼,輸出如下:
[root@node-rac2 crs]# ./root.sh
WARNING: directory '/app/oracrs/product/11.0.6' is not owned by root
WARNING: directory '/app/oracrs/product' is not owned by root
WARNING: directory '/app/oracrs' is not owned by root
WARNING: directory '/app' is not owned by root
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.
………..
node 1: node-rac1 node-priv1 node-rac1
node 2: node-rac2 node-priv2 node-rac2
clscfg: Arguments check out successfully.
Cluster Synchronization Services is active on these nodes.
        node-rac1
        node-rac2
Cluster Synchronization Services is active on all the nodes.
Running vipca(silent) for configuring nodeapps
Creating VIP application resource on (2) nodes . ..
Creating GSD application resource on (2) nodes ...
Creating ONS application resource on (2) nodes . ..
Starting VIP application resource on (2) nodes ...
Starting GSD application resource on (2) nodes...
Starting ONS application resource on (2) nodes ...
Done.
 

最後,給出安裝完成驗證資訊,顯示如下:

650) this.width=650;" border="0" alt="" src="http://www.bkjia.com/uploads/allimg/131229/2011441426-11.png" /> 

 

未完待續!

本文出自 “技術成就夢想” 部落格,請務必保留此出處http://ixdba.blog.51cto.com/2895551/882362

相關文章

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.