標籤:oracle
Solaris 10(x86)構建Oracle 10g RAC之--安裝CRS
系統內容:
作業系統:Solaris 10(x86-64)
Cluster: Oracle CRS 10.2.0.1.0
Oracle: Oracle 10.2.0.1.0
:RAC 系統架構
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/58/E3/wKiom1S_b-OSHjhcAAGktznT6W4920.jpg" title="rac.jpg" alt="wKiom1S_b-OSHjhcAAGktznT6W4920.jpg" width="650" style="padding:0px;margin:0px;vertical-align:top;border:none;" />
二、CRS 安裝
Cluster Ready Service是Oracle 構建RAC,負責叢集資源管理的軟體,在搭建RAC中必須首先安裝.
安裝需採用圖形化方式,以Oracle使用者的身份安裝(在node1上):
解壓CRS安裝包:
[[email protected]:/export/home/oracle]$ unzip 10201_clusterware_solx86_64.zip
跳過系統內容檢測:
[[email protected]:/export/home/oracle/clusterware]$ ./runInstaller -ignoreSysPrereps
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/58/E9/wKiom1TAeirSJXpGAAPSM-GsYIM307.jpg" style="float:none;" title="so1.png" alt="wKiom1TAeirSJXpGAAPSM-GsYIM307.jpg" />
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/58/E6/wKioL1TAewHxP-mNAATCv1E6GhQ483.jpg" style="float:none;" title="so2.png" alt="wKioL1TAewHxP-mNAATCv1E6GhQ483.jpg" />
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/58/E9/wKiom1TAeiqAze0bAAP8k_HO52o146.jpg" style="float:none;" title="so3.png" alt="wKiom1TAeiqAze0bAAP8k_HO52o146.jpg" />
注意:以上安裝路徑為CRS安裝路徑
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/58/E6/wKioL1TAewHysKGzAASqp1f2q0o471.jpg" style="float:none;" title="so4.png" alt="wKioL1TAewHysKGzAASqp1f2q0o471.jpg" />
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/58/E9/wKiom1TAeiugAYtIAAQ5ymWxIaQ318.jpg" style="float:none;" title="so5.png" alt="wKiom1TAeiugAYtIAAQ5ymWxIaQ318.jpg" />
添加node2資訊
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/58/E6/wKioL1TAewLiwOp_AARJPPDdFns160.jpg" style="float:none;" title="so6.png" alt="wKioL1TAewLiwOp_AARJPPDdFns160.jpg" />
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/58/E6/wKioL1TAewKhcwpyAAOb0X3tkhg455.jpg" style="float:none;" title="so7.png" alt="wKioL1TAewKhcwpyAAOb0X3tkhg455.jpg" />
修改網路屬性
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/58/E9/wKiom1TAeiyCvjKUAATIjxju8GQ763.jpg" style="float:none;" title="so8.png" alt="wKiom1TAeiyCvjKUAATIjxju8GQ763.jpg" />
指定OCR磁碟位置
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/58/E9/wKiom1TAeiyDZjvzAATyhRWpdaI009.jpg" style="float:none;" title="so9.png" alt="wKiom1TAeiyDZjvzAATyhRWpdaI009.jpg" />
指定VOTE磁碟位置
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/58/E6/wKioL1TAewOCzjXhAAQN0Ha3t4U700.jpg" style="float:none;" title="so10.png" alt="wKioL1TAewOCzjXhAAQN0Ha3t4U700.jpg" />
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/58/E9/wKiom1TAei3DPuqDAAOnfYNDeWA620.jpg" style="float:none;" title="so11.png" alt="wKiom1TAei3DPuqDAAOnfYNDeWA620.jpg" />
運行指令碼:(所有node)
[[email protected]:/]# /export/home/ora10/oraInventory/orainstRoot.sh Changing permissions of /export/home/ora10/oraInventory to 770.Changing groupname of /export/home/ora10/oraInventory to oinstall.The execution of the script is complete[[email protected]:/]# /export/home/ora10/oraInventory/orainstRoot.sh Changing permissions of /export/home/ora10/oraInventory to 770.Changing groupname of /export/home/ora10/oraInventory to oinstall.The execution of the script is complete
[[email protected]:/]# /export/home/crs_1/root.shChecking to see if Oracle CRS stack is already configuredSetting the permissions on OCR backup directorySetting up NS directoriesOracle Cluster Registry configuration upgraded successfullySuccessfully accumulated necessary OCR keys.Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.node <nodenumber>: <nodename> <private interconnect name> <hostname>node 1: node1 node1-priv node1node 2: node2 node2-priv node2Creating OCR keys for user ‘root‘, privgrp ‘root‘..Operation successful.Now formatting voting device: /oracle/voteFormat of 1 voting devices complete.Startup will be queued to init within 30 seconds.Adding daemons to inittabExpecting the CRS daemons to be up within 600 seconds.CSS is active on these nodes. node1CSS is inactive on these nodes. node2Local node checking complete.Run root.sh on remaining nodes to start CRS daemons.[[email protected]:/]# /export/home/crs_1/root.sh Checking to see if Oracle CRS stack is already configuredSetting the permissions on OCR backup directorySetting up NS directoriesOracle Cluster Registry configuration upgraded successfullyclscfg: EXISTING configuration version 3 detected.clscfg: version 3 is 10G Release 2.Successfully accumulated necessary OCR keys.Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.node <nodenumber>: <nodename> <private interconnect name> <hostname>node 1: node1 node1-priv node1node 2: node2 node2-priv node2clscfg: Arguments check out successfully.NO KEYS WERE WRITTEN. Supply -force parameter to override.-force is destructive and will destroy any previous clusterconfiguration.Oracle Cluster Registry for cluster has already been initializedStartup will be queued to init within 30 seconds.Adding daemons to inittabExpecting the CRS daemons to be up within 600 seconds.CSS is active on these nodes. node1 node2CSS is active on all nodes.Waiting for the Oracle CRSD and EVMD to startOracle CRS stack installed and running under init(1M)Running vipca(silent) for configuring nodeappsCreating 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;" src="http://s3.51cto.com/wyfs02/M01/58/E6/wKioL1TAewTQv11nAARisdm194U229.jpg" style="float:none;" title="so12.png" alt="wKioL1TAewTQv11nAARisdm194U229.jpg" />
650) this.width=650;" src="http://s3.51cto.com/wyfs02/M01/58/E9/wKiom1TAei3i5sO9AAL94JIW1iY099.jpg" style="float:none;" title="so13.png" alt="wKiom1TAei3i5sO9AAL94JIW1iY099.jpg" />
查看CRS服務和資源資訊:
[[email protected]:/]# vi /etc/profileexport PATH=$PATH:/export/home/crs_1/bin[[email protected]:/]# crsctl check crsCSS appears healthyCRS appears healthyEVM appears healthy[[email protected]:/]# crs_stat -tName Type Target State Host ------------------------------------------------------------ora.node1.gsd application ONLINE ONLINE node1 ora.node1.ons application ONLINE ONLINE node1 ora.node1.vip application ONLINE ONLINE node1 ora.node2.gsd application ONLINE ONLINE node2 ora.node2.ons application ONLINE ONLINE node2 ora.node2.vip application ONLINE ONLINE node2[[email protected]:/]# crsctl check crsCSS appears healthyCRS appears healthyEVM appears healthy[[email protected]:/]# crs_stat -tName Type Target State Host ------------------------------------------------------------ora.node1.gsd application ONLINE ONLINE node1 ora.node1.ons application ONLINE ONLINE node1 ora.node1.vip application ONLINE ONLINE node1 ora.node2.gsd application ONLINE ONLINE node2 ora.node2.ons application ONLINE ONLINE node2 ora.node2.vip application ONLINE ONLINE node2
@至此,CRS安裝成功!
本文出自 “天涯客的blog” 部落格,請務必保留此出處http://tiany.blog.51cto.com/513694/1606947
Solaris 10(x86)構建Oracle 10g RAC之--安裝CRS