隨筆-2  評(píng)論-1  文章-10  trackbacks-0

          4. 創(chuàng)建并配置第二個(gè)虛擬機(jī)

          要?jiǎng)?chuàng)建第二個(gè)虛擬機(jī),只需關(guān)閉第一個(gè)虛擬機(jī),將 d:vmracrac1 中的所有文件復(fù)制到 d:vmracrac2,然后更改幾個(gè)配置即可。

          修改網(wǎng)絡(luò)配置。
          1. 在 rac1 上,以 root 用戶身份執(zhí)行
            # shutdown –h now
          2. 在主機(jī)系統(tǒng)上,將 rac1 文件夾中的所有文件復(fù)制到 rac2。
            D:>copy d:vmracrac1 d:vmracrac2
          3. 在 VMware Server 控制臺(tái)上,按 CTRL-O 打開(kāi)第二個(gè)虛擬機(jī) d:racrac2Red Hat Enterprise Linux 4.vmx。
          4. VMware Server 控制臺(tái):
            • 將虛擬機(jī)名稱從 rac1 重命名為 rac2。右鍵單擊您剛才打開(kāi)的新 rac1 選項(xiàng)卡,然后選擇 Settings
              • 選擇 Options 選項(xiàng)卡。
                1. 虛擬機(jī)名稱:輸入“rac2”。

          圖 5

          • 單擊 Start this virtual machine 啟動(dòng) rac2,保留 rac1 為電源關(guān)閉狀態(tài)。
          • rac2 — 虛擬機(jī):選擇 Create a new identifier
          1. 以 root 用戶身份登錄并執(zhí)行 system-config-network,以修改網(wǎng)絡(luò)配置。

            IP 地址:雙擊每個(gè)以太網(wǎng)設(shè)備,并使用下面的表進(jìn)行必要的更改。

            設(shè)備 IP 地址 子網(wǎng)掩碼 默認(rèn)網(wǎng)關(guān)地址
            eth0 192.168.2.132 255.255.255.0 192.168.2.1
            eth1 10.10.10.32 255.255.255.0 <保留空白>

            MAC 地址:導(dǎo)航到 Hardware Device 選項(xiàng)卡,并探測(cè)每個(gè)以太網(wǎng)設(shè)備的新 MAC 地址。

            主機(jī)名和 DNS:使用下面的表對(duì) DNS 選項(xiàng)卡中的項(xiàng)進(jìn)行必要的更改,然后按 CTRL-S 保存。

            主機(jī)名 首選 DNS 備用 DNS DNS 搜索路徑
            rac2.mycorpdomain.com 輸入 DNS IP 地址或保留空白。 輸入 DNS IP 地址或保留空白。 接受默認(rèn)設(shè)置或保留空白。

            最后,激活每個(gè)以太網(wǎng)設(shè)備。

          修改 /etc/hosts。將以下項(xiàng)添加到 /etc/hosts 中。

          127.0.0.1 localhost

          稍后,在 Oracle 集群件軟件安裝期間,VIPCA 將嘗試使用回送地址。

          修改 /export/home/oracle/.profile。用 devdb2 替換 ORACLE_SID 的值。

          使用 SSH 建立用戶等效性。在集群就緒服務(wù) (CRS) 和 RAC 安裝過(guò)程中,Oracle Universal Installer (OUI) 必須能夠以 oracle 的身份將軟件復(fù)制到所有 RAC 節(jié)點(diǎn),而不提示輸入口令。在 Oracle 10g 中,可以使用 ssh 代替 rsh 完成此操作。

          要建立用戶等效性,請(qǐng)?jiān)趦蓚€(gè)節(jié)點(diǎn)上以 oracle 用戶身份生成用戶的公鑰和私鑰。打開(kāi) rac1 的電源,在這兩個(gè)節(jié)點(diǎn)上執(zhí)行以下任務(wù)。
          在 rac1 上執(zhí)行

          rac1-> mkdir ~/.ssh
          rac1-> chmod 700 ~/.ssh
          rac1-> ssh-keygen -t rsa
          Generating public/private rsa key pair.
          Enter file in which to save the key (/export/home/oracle/.ssh/id_rsa):
          Enter passphrase (empty for no passphrase):
          Enter same passphrase again:
          Your identification has been saved in /export/home/oracle/.ssh/id_rsa.
          Your public key has been saved in /export/home/oracle/.ssh/id_rsa.pub.
          The key fingerprint is:
          87:54:4f:92:ba:ed:7b:51:5d:1d:59:5b:f9:44:da:b6 oracle@rac1.mycorpdomain.com
          rac1-> ssh-keygen -t dsa
          Generating public/private dsa key pair.
          Enter file in which to save the key (/export/home/oracle/.ssh/id_dsa):
          Enter passphrase (empty for no passphrase):
          Enter same passphrase again:
          Your identification has been saved in /export/home/oracle/.ssh/id_dsa.
          Your public key has been saved in /export/home/oracle/.ssh/id_dsa.pub.
          The key fingerprint is:
          31:76:96:e6:fc:b7:25:04:fd:70:42:04:1f:fc:9a:26 oracle@rac1.mycorpdomain.com

          在 rac2 上執(zhí)行

          rac2-> mkdir ~/.ssh
          rac2-> chmod 700 ~/.ssh
          rac2-> ssh-keygen -t rsa
          Generating public/private rsa key pair.
          Enter file in which to save the key (/export/home/oracle/.ssh/id_rsa):
          Enter passphrase (empty for no passphrase):
          Enter same passphrase again:
          Your identification has been saved in /export/home/oracle/.ssh/id_rsa.
          Your public key has been saved in /export/home/oracle/.ssh/id_rsa.pub.
          The key fingerprint is:
          29:5a:35:ac:0a:03:2c:38:22:3c:95:5d:68:aa:56:66 oracle@rac2.mycorpdomain.com
          rac2-> ssh-keygen -t dsa
          Generating public/private dsa key pair.
          Enter file in which to save the key (/export/home/oracle/.ssh/id_dsa):
          Enter passphrase (empty for no passphrase):
          Enter same passphrase again:
          Your identification has been saved in /export/home/oracle/.ssh/id_dsa.
          Your public key has been saved in /export/home/oracle/.ssh/id_dsa.pub.
          The key fingerprint is:
          4c:b2:5a:8d:56:0f:dc:7b:bc:e0:cd:3b:8e:b9:5c:7c oracle@rac2.mycorpdomain.com

          在 rac1 上執(zhí)行

          rac1-> cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
          rac1-> cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
          rac1-> ssh rac2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
          The authenticity of host 'rac2 (192.168.2.132)' can't be established.
          RSA key fingerprint is 63:d3:52:d4:4d:e2:cb:ac:8d:4a:66:9f:f1:ab:28:1f.
          Are you sure you want to continue connecting (yes/no)? yes
          Warning: Permanently added 'rac2,192.168.2.132' (RSA) to the list of known hosts.
          oracle@rac2's password:
          rac1-> ssh rac2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
          oracle@rac2's password:
          rac1-> scp ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
          oracle@rac2's password:
          authorized_keys 100% 1716 1.7KB/s 00:00

          在每個(gè)節(jié)點(diǎn)上測(cè)試連接。驗(yàn)證當(dāng)您再次運(yùn)行以下命令時(shí),系統(tǒng)是否不提示您輸入口令。

          ssh rac1 date
          ssh rac2 date
          ssh rac1-priv date
          ssh rac2-priv date
          ssh rac1.mycorpdomain.com date
          ssh rac2.mycorpdomain.com date
          ssh rac1-priv.mycorpdomain.com date
          ssh rac2-priv.mycorpdomain.com date

          一定要確認(rèn)不需要密碼就能執(zhí)行 否則后面從rac1遠(yuǎn)程安裝cluster ware到rac2上的時(shí)候會(huì)報(bào)錯(cuò).

          5. 配置 Oracle 自動(dòng)存儲(chǔ)管理 (ASM)

          Oracle ASM 與 Oracle 數(shù)據(jù)庫(kù)緊密集成在一起,并與 Oracle 的數(shù)據(jù)管理工具套件配合工作。它可以簡(jiǎn)化數(shù)據(jù)庫(kù)存儲(chǔ)管理,并提供原始磁盤 I/O 的性能。

          配置 ASMLib。以 root 用戶身份在兩個(gè)節(jié)點(diǎn)上配置 ASMLib。

          # /etc/init.d/oracleasm configure
          Configuring the Oracle ASM library driver.

          This will configure the on-boot properties of the Oracle ASM library
          driver. The following questions will determine whether the driver is
          loaded on boot and what permissions it will have. The current values
          will be shown in brackets ('[]'). Hitting without typing an
          answer will keep that current value. Ctrl-C will abort.

          Default user to own the driver interface []: oracle
          Default group to own the driver interface []: dba
          Start Oracle ASM library driver on boot (y/n) [n]: y
          Fix permissions of Oracle ASM disks on boot (y/n) [y]: y
          Writing Oracle ASM library driver configuration: [ OK ]
          Loading module "oracleasm": [ OK ]
          Mounting ASMlib driver filesystem: [ OK ]
          Scanning system for ASM disks: [ OK ]

          創(chuàng)建 ASM 磁盤。以 root 用戶身份在任何一個(gè)節(jié)點(diǎn)上創(chuàng)建 ASM 磁盤。

          # /etc/init.d/oracleasm createdisk VOL1 /dev/sdc1
          Marking disk "/dev/sdc1" as an ASM disk: [ OK ]
          # /etc/init.d/oracleasm createdisk VOL2 /dev/sdd1
          Marking disk "/dev/sdd1" as an ASM disk: [ OK ]
          # /etc/init.d/oracleasm createdisk VOL3 /dev/sde1
          Marking disk "/dev/sde1" as an ASM disk: [ OK ]
          Verify that the ASM disks are visible from every node.
          # /etc/init.d/oracleasm scandisks
          Scanning system for ASM disks: [ OK ]
          # /etc/init.d/oracleasm listdisks
          VOL1
          VOL2
          VOL3
          VOL4

          6. 配置 Oracle 集群文件系統(tǒng) (OCFS2)

          OCFS2 是 Oracle 開(kāi)發(fā)的一個(gè)通用集群文件系統(tǒng),與 Enterprise Linux 內(nèi)核集成在一起。它允許所有節(jié)點(diǎn)在集群文件系統(tǒng)上同時(shí)共享文件,因而消除了管理原始設(shè)備的需求。這里,您將在 OCFS2 文件系統(tǒng)中寄宿 OCR 和表決磁盤。您可以從 OCFS2 用戶指南獲取有關(guān) OCFS2 的其他信息。

          在 Enterprise Linux 安裝期間,您應(yīng)該已經(jīng)安裝了 OCFS2 RPM。驗(yàn)證 RPM 是否已經(jīng)安裝在兩個(gè)節(jié)點(diǎn)上。

          rac1-> rpm -qa | grep ocfs
          ocfs2-tools-1.2.2-2
          ocfs2console-1.2.2-2
          ocfs2-2.6.9-42.0.0.0.1.ELsmp-1.2.3-2
          要去oracle 下載

          創(chuàng)建 OCFS2 配置文件。 在 rac1 上,以 root 用戶身份執(zhí)行

          # ocfs2console
          1. OCFS2 控制臺(tái):選擇 Cluster,然后選擇 Configure Nodes
          2. “集群堆棧已經(jīng)啟動(dòng)”:?jiǎn)螕?Close
          3. 節(jié)點(diǎn)配置:?jiǎn)螕?Add
          4. 新增節(jié)點(diǎn):添加以下節(jié)點(diǎn),然后單擊 Apply
            • 名稱:rac1
            • IP 地址: 192.168.2.131
            • IP 端口: 7777
            • 名稱:rac2
            • IP 地址: 192.168.2.132
            • IP 端口: 7777
          5. 驗(yàn)證生成的配置文件。
            # more /etc/ocfs2/cluster.conf
            node:
            ip_port = 7777
            ip_address = 192.168.2.131
            number = 0
            name = rac1
            cluster = ocfs2

            node:
            ip_port = 7777
            ip_address = 192.168.2.132
            number = 1
            name = rac2
            cluster = ocfs2

            cluster:
            node_count = 2
            name = ocfs2
          6. 將配置文件傳播到 rac2。您可以在 rac2 上重新運(yùn)行上述步驟以生成配置文件,或者在 rac1 的 OCFS2 控制臺(tái)上選擇 ClusterPropagate Configuration 以將配置文件傳播到 rac2。

          配置 O2CB 驅(qū)動(dòng)程序。O2CB 是一組集群服務(wù),負(fù)責(zé)管理節(jié)點(diǎn)與集群文件系統(tǒng)之間的通信。下面是對(duì)各個(gè)服務(wù)的說(shuō)明:

          • NM:用于跟蹤 cluster.conf 中的所有節(jié)點(diǎn)的節(jié)點(diǎn)管理器
          • HB:當(dāng)節(jié)點(diǎn)加入或離開(kāi)集群時(shí)向上/向下發(fā)出通知的心跳服務(wù)
          • TCP:處理節(jié)點(diǎn)之間的通信
          • DLM:用于跟蹤所有鎖、這些鎖的所有者以及狀態(tài)的分布式鎖管理器
          • CONFIGFS:在 /config 中掛載的用戶空間驅(qū)動(dòng)的配置文件系統(tǒng)
          • DLMFS:用戶空間與內(nèi)核空間 DLM 的接口

          在兩個(gè)節(jié)點(diǎn)上執(zhí)行下面的過(guò)程,將 O2CB 配置為在引導(dǎo)時(shí)啟動(dòng)。

          當(dāng)系統(tǒng)提示您指定心跳死亡閾值時(shí),您必須指定一個(gè)大于 7 的值,以防止節(jié)點(diǎn)由于較慢的 IDE 磁盤驅(qū)動(dòng)器而崩潰。心跳死亡閾值是一個(gè)用于計(jì)算隔離時(shí)間的變量。

          Fence time (seconds) = (heartbeat dead threshold -1) * 2

          在我們的環(huán)境中,120 秒的隔離時(shí)間很合適。兩個(gè)節(jié)點(diǎn)上的心跳死亡閾值應(yīng)該完全相同。

          以 root 用戶身份執(zhí)行

          # /etc/init.d/o2cb unload
          Stopping O2CB cluster ocfs2: OK
          Unmounting ocfs2_dlmfs filesystem: OK
          Unloading module "ocfs2_dlmfs": OK
          Unmounting configfs filesystem: OK
          Unloading module "configfs": OK

          # /etc/init.d/o2cb configure
          Configuring the O2CB driver.

          This will configure the on-boot properties of the O2CB driver.
          The following questions will determine whether the driver is loaded on
          boot. The current values will be shown in brackets ('[]'). Hitting
          without typing an answer will keep that current value. Ctrl-C
          will abort.

          Load O2CB driver on boot (y/n) [y]: y
          Cluster to start on boot (Enter "none" to clear) [ocfs2]:
          Specify heartbeat dead threshold (>=7) [7]: 61
          Writing O2CB configuration: OK
          Loading module "configfs": OK
          Mounting configfs filesystem at /config: OK
          Loading module "ocfs2_nodemanager": OK
          Loading module "ocfs2_dlm": OK
          Loading module "ocfs2_dlmfs": OK
          Mounting ocfs2_dlmfs filesystem at /dlm: OK
          Starting O2CB cluster ocfs2: OK

          格式化文件系統(tǒng)。在格式化和掛載文件系統(tǒng)之前,應(yīng)驗(yàn)證 O2CB 在兩個(gè)節(jié)點(diǎn)上均聯(lián)機(jī);O2CB 心跳當(dāng)前沒(méi)有活動(dòng),因?yàn)槲募到y(tǒng)未掛載。

          # /etc/init.d/o2cb status
          (很重要的命令,重新啟動(dòng)后應(yīng)該首先判斷這個(gè)服務(wù)是否開(kāi)啟,狀態(tài)如何,特別是heartbeat是不是active
          一般都是ocfs沒(méi)有mount上的原因造成沒(méi)有啟動(dòng))

          Module "configfs": Loaded
          Filesystem "configfs": Mounted
          Module "ocfs2_nodemanager": Loaded
          Module "ocfs2_dlm": Loaded
          Module "ocfs2_dlmfs": Loaded
          Filesystem "ocfs2_dlmfs": Mounted
          Checking O2CB cluster ocfs2: Online
          Checking O2CB heartbeat: Not active

          您只需在一個(gè)節(jié)點(diǎn)上格式化文件系統(tǒng)。在 rac1 上,以 root 用戶身份執(zhí)行

          # ocfs2console
          1. OCFS2 控制臺(tái):選擇 Tasks、Format
          2. 格式:
            • 可用設(shè)備:/dev/sdb1
            • 卷標(biāo):oracle
            • 集群大小:Auto
            • 節(jié)點(diǎn)插槽數(shù)量: 4
            • 塊大小:Auto
          3. OCFS2 控制臺(tái):按 CTRL-Q 退出。

          掛載文件系統(tǒng)。要掛載文件系統(tǒng),在兩個(gè)節(jié)點(diǎn)上執(zhí)行以下命令。

          # mount -t ocfs2 -o datavolume,nointr /dev/sdb1 /ocfs

          要在引導(dǎo)時(shí)掛載文件系統(tǒng),在兩個(gè)節(jié)點(diǎn)的 /etc/fstab 中添加以下行。

          /etc/fstab

          /dev/sdb1 /ocfs ocfs2 _netdev,datavolume,nointr 0 0

          創(chuàng)建 Oracle 集群件目錄。在 OCR 和表決磁盤將駐留的 OCFS2 文件系統(tǒng)中創(chuàng)建目錄。

          在 rac1 上執(zhí)行

          # mkdir /ocfs/clusterware
          # chown -R oracle:dba /ocfs

          現(xiàn)在,您已經(jīng)完成了 OCFS2 的設(shè)置。驗(yàn)證您可以在兩個(gè)節(jié)點(diǎn)的共享集群文件系統(tǒng)上讀寫文件。

          7. 安裝 Oracle 集群件

          下載后,在 rac1 上以 oracle 用戶身份執(zhí)行(注銷切換到oracle ,這樣起安裝圖形就沒(méi)有問(wèn)題)

          安裝之前最好是用安裝目錄下的檢測(cè)工具來(lái)檢查是否滿足安裝的要求

          ../. cluvfy stage -pre crsinst -n rac1,rac2

          我安裝的時(shí)候還差幾個(gè)gcc 的包 安裝好了就可以了
          檢查的時(shí)候會(huì)報(bào)vips的錯(cuò)誤可以忽略,等cluster安裝后了以后再設(shè)置.
          rac1-> /u01/staging/clusterware/runInstaller
          1. 歡迎頁(yè)面:?jiǎn)螕?Next
          2. 指定 Inventory 目錄和證書:
            • 輸入 inventory 目錄的完整路徑:/u01/app/oracle/oraInventory。
            • 指定操作系統(tǒng)組名:oinstall。
          3. 指定 Home 詳細(xì)內(nèi)容:
            • 名稱:OraCrs10g_home
            • /u01/app/oracle/product/10.2.0/crs_1
          4. 特定于產(chǎn)品的必要條件檢查:
            • 忽略有關(guān)物理內(nèi)存要求的警告。
          5. 指定集群配置:?jiǎn)螕?Add
            • 公共節(jié)點(diǎn)名稱:rac2.mycorpdomain.com
            • 專用節(jié)點(diǎn)名稱:rac2-priv.mycorpdomain.com
            • 虛擬主機(jī)名稱:rac2-vip.mycorpdomain.com
            • 最好這里直接用rac1,rac1-priv,rac1-vip來(lái)指名節(jié)點(diǎn)
          6. 指定網(wǎng)絡(luò)接口用法:
            • 接口名稱:eth0
            • 子網(wǎng): 192.168.2.0
            • 接口類型:Public
            • 接口名稱:eth1
            • 子網(wǎng): 10.10.10.0
            • 接口類型:Private
          7. 指定 Oracle 集群注冊(cè)表 (OCR) 位置:選擇 External Redundancy
            為了簡(jiǎn)單起見(jiàn),這里將不鏡像 OCR。在生產(chǎn)環(huán)境中,您可能會(huì)考慮復(fù)用 OCR 以實(shí)現(xiàn)更高的冗余。
            • 指定 OCR 位置:/ocfs/clusterware/ocr
          8. 指定表決磁盤位置:選擇 External Redundancy
            同樣,為了簡(jiǎn)單起見(jiàn),我們選擇不鏡像表決磁盤。
            • 表決磁盤位置:/ocfs/clusterware/votingdisk
          9. 摘要:?jiǎn)螕?Install
          10. 執(zhí)行配置腳本:以 root 用戶身份按順序執(zhí)行以下腳本(一次執(zhí)行一個(gè))。在當(dāng)前腳本完成后,再繼續(xù)執(zhí)行下一個(gè)腳本。
            • 在 rac1 上執(zhí)行 /u01/app/oracle/oraInventory/orainstRoot.sh。
            • 在 rac2 上執(zhí)行 /u01/app/oracle/oraInventory/orainstRoot.sh。
            • 在 rac1 上執(zhí)行 /u01/app/oracle/product/10.2.0/crs_1/root.sh。
            • 在 rac2 上執(zhí)行 /u01/app/oracle/product/10.2.0/crs_1/root.sh。
            rac2 上的 root.sh 腳本會(huì)自動(dòng)調(diào)用 VIPCA,但會(huì)因?yàn)?#8220;The given interface(s), "eth0" is not public.Public interfaces should be used to configure virtual IPs.”錯(cuò)誤而失敗。如果您的公共接口使用不可路由的 IP 地址 (192.168.x.x),則 Oracle 集群驗(yàn)證實(shí)用程序 (CVU) 將無(wú)法找到合適的公共接口。一種解決方法是手動(dòng)運(yùn)行 VIPCA。
          11. 以 root 用戶身份在第二個(gè)節(jié)點(diǎn)上手動(dòng)調(diào)用 VIPCA。
            # /u01/app/oracle/product/10.2.0/crs_1/bin/vipca
          12. 歡迎頁(yè)面:?jiǎn)螕?Next
          13. 網(wǎng)絡(luò)接口:選擇 eth0
          14. 集群節(jié)點(diǎn)的虛擬 IP:
            • 節(jié)點(diǎn)名稱:rac1
            • IP 別名:rac1-vip
            • IP 地址: 192.168.2.31
            • 子網(wǎng)掩碼: 255.255.255.0
            • 節(jié)點(diǎn)名稱:rac2
            • IP 別名:rac2-vip
            • IP 地址: 192.168.2.32
            • 子網(wǎng)掩碼: 255.255.255.0
          15. 摘要:?jiǎn)螕?Finish

            圖 6

          16. 配置助手進(jìn)度對(duì)話框:配置完成后,單擊 OK
          17. 配置結(jié)果:?jiǎn)螕?Exit
          18. 返回到 rac1 的執(zhí)行配置腳本屏幕,然后單擊 OK

            圖 7

          19. 配置助手:驗(yàn)證所有檢查均成功。OUI 在最后會(huì)執(zhí)行集群件安裝后檢查。如果 CVU 失敗,請(qǐng)更正問(wèn)題,并以 oracle 用戶身份重新運(yùn)行以下命令:
            rac1-> /u01/app/oracle/product/10.2.0/crs_1/bin/cluvfy stage 
            -post crsinst -n rac1,rac2

            Performing post-checks for cluster services setup

            Checking node reachability...
            Node reachability check passed from node "rac1".

            Checking user equivalence...
            User equivalence check passed for user "oracle".

            Checking Cluster manager integrity...

            Checking CSS daemon...
            Daemon status check passed for "CSS daemon".

            Cluster manager integrity check passed.

            Checking cluster integrity...

            Cluster integrity check passed

            Checking OCR integrity...

            Checking the absence of a non-clustered configuration...
            All nodes free of non-clustered, local-only configurations.

            Uniqueness check for OCR device passed.

            Checking the version of OCR...
            OCR of correct Version "2" exists.

            Checking data integrity of OCR...
            Data integrity check for OCR passed.

            OCR integrity check passed.

            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.

            Post-check for cluster services setup was successful.
          20. 安裝結(jié)束:?jiǎn)螕?Exit

          8. 安裝 Oracle 數(shù)據(jù)庫(kù) 10g 第 2 版

          下載后,在 rac1 上以 oracle 用戶身份執(zhí)行

          rac1-> /u01/staging/database/runInstaller
          1. 歡迎頁(yè)面:?jiǎn)螕?Next
          2. 選擇安裝類型:
            • 選擇 Enterprise Edition
          3. 指定 Home 詳細(xì)內(nèi)容:
            • 名稱:OraDb10g_home1
            • 路徑:/u01/app/oracle/product/10.2.0/db_1
          4. 指定硬件集群安裝模式:
            • 選擇 Cluster Installation
            • 單擊 Select All
          5. 特定于產(chǎn)品的必要條件檢查:
            • 忽略有關(guān)物理內(nèi)存要求的警告。
          6. 選擇配置選項(xiàng):
            • 創(chuàng)建數(shù)據(jù)庫(kù)。
          7. 選擇數(shù)據(jù)庫(kù)配置:
            • 選擇 Advanced
          8. 摘要:?jiǎn)螕?Install
          9. 數(shù)據(jù)庫(kù)模板:
            • 選擇 General Purpose
          10. 數(shù)據(jù)庫(kù)標(biāo)識(shí):
            • 全局?jǐn)?shù)據(jù)庫(kù)名稱:devdb
            • SID 前綴:devdb
          11. 管理選項(xiàng):
            • 選擇 Configure the Database with Enterprise Manager
          12. 數(shù)據(jù)庫(kù)證書:
            • 針對(duì)所有帳戶使用相同的口令。
          13. 存儲(chǔ)選項(xiàng):
            • 選擇 Automatic Storage Management (ASM)
          14. 創(chuàng)建 ASM 實(shí)例:
            • SYS 口令:<輸入 SYS 口令>。
            • 選擇 Create initialization parameter file (IFILE)
          15. ASM 磁盤組:
            • 單擊 Create New
          16. 創(chuàng)建磁盤組:
            創(chuàng)建兩個(gè)磁盤組 — DG1 和 RECOVERYDEST。
            • 磁盤組名稱:DG1
            • 選擇 Normal 冗余。
            • 選擇磁盤路徑 ORCL:VOL1 和 ORCL:VOL2。如果您已經(jīng)使用標(biāo)準(zhǔn) Linux I/O 配置了 ASM 磁盤,則請(qǐng)選擇 /u01/oradata/devdb/asmdisk1 和 /u01/oradata/devdb/asmdisk2。
            • 單擊 OK

          圖 8

          • 磁盤組名稱:RECOVERYDEST。
          • 選擇 External 冗余。
          • 選擇磁盤路徑 ORCL:VOL3。如果您已經(jīng)使用標(biāo)準(zhǔn) Linux I/O 配置了 ASM 磁盤,則請(qǐng)選擇 /u01/oradata/devdb/asmdisk3。
          • 單擊 OK

          圖 9

          1. ASM 磁盤組:?jiǎn)螕?Next

          圖 10

          1. 數(shù)據(jù)庫(kù)文件位置:
            • 選擇 Use Oracle-Managed Files
              • 數(shù)據(jù)庫(kù)區(qū)域:+DG1
          2. 恢復(fù)配置:
            • 選擇 Specify Flash Recovery Area
              • 閃回恢復(fù)區(qū):+RECOVERYDEST
              • 閃回恢復(fù)區(qū)大小:1500M
            • 選擇 Enable Archiving
          3. 數(shù)據(jù)庫(kù)內(nèi)容:
            • 選擇或取消選擇示例模式。
          4. 數(shù)據(jù)庫(kù)服務(wù):
            • 單擊 Next。稍后,您可以使用 DBCA 或 srvctl 創(chuàng)建或修改其他服務(wù)。
          5. 初始化參數(shù):
            • 選擇 Custom
              • 共享內(nèi)存管理:Automatic
              • SGA 大小:200MB
              • PGA 大小:25MB
            • b. 根據(jù)需要修改其余參數(shù)。
          6. 數(shù)據(jù)庫(kù)存儲(chǔ):?jiǎn)螕?Next
          7. 創(chuàng)建選項(xiàng):
            • 選擇 Create Database
            • 單擊 Finish
          8. 摘要:?jiǎn)螕?OK
          9. 數(shù)據(jù)庫(kù)配置助手:?jiǎn)螕?Exit

          圖 11

          圖 12

          1. 執(zhí)行配置腳本:以 root 用戶身份執(zhí)行下面的腳本。
            • 在 rac1 上執(zhí)行 /u01/app/oracle/product/10.2.0/db_1/root.sh。
            • 在 rac2 上執(zhí)行 /u01/app/oracle/product/10.2.0/db_1/root.sh。
          2. 返回到 rac1 的執(zhí)行配置腳本屏幕,然后單擊 OK
          3. 安裝結(jié)束:?jiǎn)螕?Exit

          圖 13

          恭喜,您已經(jīng)在 Enterprise Linux 上成功安裝了 Oracle RAC 數(shù)據(jù)庫(kù) 10g

          我裝的還是比較順利的,主要是cluster ware那里因?yàn)楣?jié)點(diǎn)名字的原因?qū)е略谶h(yuǎn)程ssh 安裝的時(shí)候要輸入密碼.所以遠(yuǎn)程安裝失敗.要么保證那幾個(gè)ssh xx date命令都需要密碼,要么就直接用最簡(jiǎn)單的節(jié)點(diǎn)名字.

          其它參考:

          Oracle Enterprise Linux 和 iSCSI 上構(gòu)建您自己的 Oracle RAC 集群

          http://www.oracle.com/technology/global/cn/pub/articles/hunter_rac11gr1_iscsi.html

          posted on 2010-12-09 11:37 沉香江南 閱讀(1048) 評(píng)論(0)  編輯  收藏 所屬分類: 轉(zhuǎn)載文章
          主站蜘蛛池模板: 巨野县| 池州市| 马山县| 津市市| 丘北县| 泰和县| 夹江县| 湟中县| 固镇县| 成武县| 淳安县| 星子县| 明水县| 灵山县| 安陆市| 长汀县| 宁城县| 瑞丽市| 尼玛县| 柳州市| 磐安县| 区。| 都江堰市| 赣州市| 仲巴县| 肥东县| 保山市| 鄂伦春自治旗| 漳平市| 东兰县| 无极县| 泗水县| 万州区| 康马县| 沙河市| 徐水县| 木里| 扎鲁特旗| 中宁县| 景宁| 盐津县|