star帶你玩轉Oracle-零基礎openfiler共享儲存安裝Oracle 11G RAC-(6/8)-orasta

orastar發表於2017-05-10

18、GRID叢集安裝


18.1   檢查htdb1環境變數

[grid@htdb1 ~]$ env|grep ORA

ORACLE_SID=+ASM1

ORACLE_BASE=/u01/app/grid

ORACLE_HOME=/u01/app/11.2.0/grid

18.2   檢查htdb2環境變數

 

[grid@htdb2 ~]$ env|grep ORA

ORACLE_SID=+ASM2

ORACLE_BASE=/u01/app/grid

ORACLE_HOME=/u01/app/11.2.0/grid

18.3   執行安裝程式

[grid@htdb1 ~]$ cd /u01/soft/grid/

[grid@htdb1 grid]$ ls

install  readme.html  response  rpm  runcluvfy.sh  runInstaller  sshsetup  stage  welcome.html

[grid@htdb1 grid]$ export DISPLAY=192.168.1.11:0.0


點選Add按鈕, 新增htdb2伺服器資訊

點選SSH Connectivity>>輸入os password>>點選”Setup”安裝配置互信>>點選”Test”測試互信>>點選"next"按鈕


注: 如未彈出以上視窗,兩個結點手工安裝rpm包,
cd /u01/soft/grid/rpm
rpm -ivh cvuqdisk-1.0.9-1.rpm






分別在兩個伺服器上以root賬號執行以下2個指令碼,然後點選OK按鈕



18.4   檢查GRID安裝

[grid@htdb1 ~]$ crsctl stat res -t

--------------------------------------------------------------------------------

NAME           TARGET  STATE        SERVER                   STATE_DETAILS      

--------------------------------------------------------------------------------

Local Resources

--------------------------------------------------------------------------------

ora.LISTENER.lsnr

               ONLINE  ONLINE       htdb1                                       

               ONLINE  ONLINE       htdb2                                       

ora.OCR_VOT.dg

               ONLINE  ONLINE       htdb1                                       

               ONLINE  ONLINE       htdb2                                       

ora.asm

               ONLINE  ONLINE       htdb1                    Started            

               ONLINE  ONLINE       htdb2                    Started            

ora.gsd

               OFFLINE OFFLINE      htdb1                                       

               OFFLINE OFFLINE      htdb2                                       

ora.net1.network

               ONLINE  ONLINE       htdb1                                       

               ONLINE  ONLINE       htdb2                                       

ora.ons

               ONLINE  ONLINE       htdb1                                       

               ONLINE  ONLINE       htdb2                                       

ora.registry.acfs

               ONLINE  ONLINE       htdb1                                       

               ONLINE  ONLINE       htdb2                                       

--------------------------------------------------------------------------------

Cluster Resources

--------------------------------------------------------------------------------

ora.LISTENER_SCAN1.lsnr

      1        ONLINE  ONLINE       htdb1                                        

ora.cvu

      1        ONLINE  ONLINE       htdb1                                       

ora.htdb1.vip

      1        ONLINE  ONLINE       htdb1                                       

ora.htdb2.vip

      1        ONLINE  ONLINE       htdb2                                       

ora.oc4j

      1        ONLINE  ONLINE       htdb1                                       

ora.scan1.vip

      1        ONLINE  ONLINE       htdb1                                       

[grid@htdb1 ~]$



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

相關文章