2014年8月22日 星期五

[Oracle] 安裝Oracle RAC 11g R2 Cluster on Oracle Linux 5.4 and iSCSI + udev (三)

--此篇會完成以下兩項工作
A. ASMCA建立Data及Fast Recovery的Area ASM Disk Groups
B. 安裝Oracle Database 11g with Oracle Real Application Clusters(僅安裝軟體,不含設定Database)

--在node1登入grid帳號後使用ASMCA建立Data及Fast Recovery的Area ASM Disk Groups
01. [grid@node1 ~]$ asmca &
02. 在[ASM Configuration Assistant: Configure ASM: Disk Groups]視窗中點選[Disk Groups]頁籤後按下[Create]


 03. 在[Create Disk Group]視窗中輸入以下資訊後按下[OK]
          Disk Group Name:DATA1
          Redundancy:External (none)
          Select Member Disks:ORCL:DATAVOL1

 04. 在[Diskgroup: Creation]視窗中按下[OK]

05. 回到[ASM Configuration Assistant: Configure ASM: Disk Groups]視窗中按下[Create]

06. 在[Create Disk Group]視窗中輸入以下資訊後按下[OK]
          Disk Group Name:ASM
          Redundancy:External (none)
          Select Member Disks:ORCL:FRAVOL1

07. 在[Diskgroup: Creation]視窗中按下[OK]

08. 回到[ASM Configuration Assistant: Configure ASM: Disk Groups]視窗中按下[Exit]

09. 在[ASM Configuration Assistant]視窗中按下[Yes]

--在node1登入oracle帳號後安裝Oracle Database 11g with Oracle Real Application Clusters
10. [oracle@node1 ~]$ cd Desktop/database/
11. [oracle@node1 database]$ ./runInstaller
12. 在[Configure Security Updates]視窗中不勾選[I wish to receive security updates via My Oracle Support]後按下[Next]
 
 

13. 在[Email Address Not Specified]視窗中按下[Yes]

14. 在[Select Installation Option]視窗中選取[Install database software only]後按下[Next]
 
 

15. 在[Node Selection]視窗中按下[SSH Connectivity]後在[OS Password]欄位輸入oracle帳號的密碼後按下[Setup]

16. 在[Oracle Database 11g Release 2 Installer]視窗中按下[OK]

17. 回到[Node Selection]視窗中按下[Test]

18. 在[Oracle Database 11g Release 2 Installer]視窗中按下[OK]

19. 回到[Node Selection]視窗中按下[Next]

20. 在[Select Product Languages]視窗中加入[Traditional Chinese]後按[Next]

21. 在[Select Database Edition]視窗中點選[Enterprise Edition]後按下[Next]

22. 在[Specify Installation Location]視窗中按下[Next]

23. 在[Privileged Operating System Groups]視窗中按下[Next]

24. 在[Perform Prerequisite Checks]視窗中請確認清單中的Package只要安裝的版本比下圖所列的版本新就可以,然後勾選[Ignore All]後按[Next]

25. 在[Summary]視窗中按下[Finish]

26. 當出現[Execute Configuration scripts]視窗時切換到root帳號在每個節點依序執行.sh,執行完後按下[OK]
      26-1. [oracle@node1 ~]$ su - root
      26-2. [root@node1 oracle]# /u01/app/oracle/product/11.2.0/db_1/root.sh
            Running Oracle 11g root.sh script...

            The following environment variables are set as:
                   ORACLE_OWNER= oracle
                   ORACLE_HOME=  /u01/app/oracle/product/11.2.0/db_1

            Enter the full pathname of the local bin directory: [/usr/local/bin]:
            The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
            [n]: y
            Copying dbhome to /usr/local/bin ...
            The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
            [n]: y
           Copying oraenv to /usr/local/bin ...
           The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
           [n]: y
           Copying coraenv to /usr/local/bin ...

           Entries will be added to the /etc/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.
           Finished product-specific root actions.


      26-3. [root@node2 ~]# /u01/app/oracle/product/11.2.0/db_1/root.sh
           Running Oracle 11g root.sh script...

           The following environment variables are set as:
               ORACLE_OWNER= oracle
               ORACLE_HOME=  /u01/app/oracle/product/11.2.0/db_1

           Enter the full pathname of the local bin directory: [/usr/local/bin]:
           The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
           [n]: y
            Copying dbhome to /usr/local/bin ...
          The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
           [n]: y
            Copying oraenv to /usr/local/bin ...
          The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
          [n]: y
           Copying coraenv to /usr/local/bin ...

         Entries will be added to the /etc/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.
         Finished product-specific root actions.


27. 在[Finish]視窗中按下[Close]


安裝Oracle RAC 11g R2 Cluster on Oracle Linux 5.4 and iSCSI + udev (一)
安裝Oracle RAC 11g R2 Cluster on Oracle Linux 5.4 and iSCSI + udev (二)
 

沒有留言:

張貼留言