Oracle10203RAC環境新增新節點(三)

yangtingkun發表於2009-11-17

簡單描述一下,在Oracle 10203 for Solaris sparcRAC雙節點環境中,新增一個節點的過程。共享儲存已經在第三個節點上配置完成,這裡主要介紹作業系統上和Oracle上的配置。

這一篇描述資料庫軟體的建立並建立ASM例項。

Oracle10203RAC環境新增新節點(一):http://yangtingkun.itpub.net/post/468/493738

Oracle10203RAC環境新增新節點(二):http://yangtingkun.itpub.net/post/468/493764

 

 

在圖形介面環境下進行ORACLE_HOME/oui/bin,執行addNode.sh,來進行新節點的新增過程:

$ cd $ORACLE_HOME/oui/bin
$ ./addNode.sh
Starting Oracle Universal Installer...

No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
Oracle Universal Installer, Version 10.2.0.3.0 Production
Copyright (C) 1999, 2006, Oracle. All rights reserved.

選擇需要安裝的節點,這裡是RACNODE3,然後點選繼續:

檢查彙總介面,Oracle10.2.0.1版本和10.2.0.3補丁一起安裝到新增節點上。

由於執行過程中出現了錯誤,需要手工執行遠端指令碼:

bash-3.00$ /data/oracle/product/10.2/database/oui/bin/runInstaller -attachHome -noClusterEnabled ORACLE_HOME=/data/oracle/product/10.2/database ORACLE_HOME_NAME=OraDb10g_home1 CLUSTER_NODES=racnode1,racnode2,racnode3 "INVENTORY_LOCATION=/data/oracle/oraInventory" LOCAL_NODE=racnode3
Starting Oracle Universal Installer...

No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
The inventory pointer is located at /var/opt/oracle/oraInst.loc
The inventory is located at /data/oracle/oraInventory
'AttachHome' was successful.

同樣執行updateNodeList的指令碼:

bash-3.00$ /data/oracle/product/10.2/database/oui/bin/runInstaller -updateNodeList -noClusterEnabled ORACLE_HOME=/data/oracle/product/10.2/database CLUSTER_NODES=racnode1,racnode2,racnode3 CRS=false "INVENTROY_LOCATION=/data/oracle/oraInventory" LOCAL_NODE=racnode3
Starting Oracle Universal Installer...

No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
The inventory pointer is located at /var/opt/oracle/oraInst.loc
The inventory is located at /data/oracle/oraInventory
'UpdateNodeList' was successful.

執行完成後,需要在新節點上執行root.sh指令碼:

# /data/oracle/product/10.2/database/root.sh

點選確定,完成軟體的安裝。

檢查新建節點後臺程式:

bash-3.00$ ps -ef|grep ora
  oracle  1587  1584   0   4
01 pts/1       0:00 -sh
  oracle 11022  5480   0 14:12:39 pts/2       0:00 ps -ef
  oracle  2877  2876   0   4
01 ?           0:04 /data/oracle/product/10.2/crs/opmn/bin/ons -d
  oracle  1247  1244   0   3
31 pts/2       0:00 -sh
  oracle  1987     1   0   4
01 ?           0:00 sh -c sh -c 'ulimit -c unlimited; cd /data/oracle/product/10.2/crs/log/racnode3
    root  1996     1   0   4
01 ?           2:05 /data/oracle/product/10.2/crs/bin/crsd.bin reboot
    root  2234  2180   0   4
01 ?           0:09 /data/oracle/product/10.2/crs/bin/oprocd run -t 1000 -m 500 -f
  oracle  2170  1987   0   4
01 ?           0:23 /data/oracle/product/10.2/crs/bin/evmd.bin
  oracle  2492  2170   0   4
01 ?           0:02 /data/oracle/product/10.2/crs/bin/evmlogger.bin -o /data/oracle/product/10.2/cr
  oracle  2263  2262   0   4
01 ?           0:00 /bin/sh -c ulimit -c unlimited; cd /data/oracle/product/10.2/crs/log/racnode3/c
  oracle  2264  2263   0   4
01 ?           3:44 /data/oracle/product/10.2/crs/bin/ocssd.bin
  oracle  2262  2181   0   4
01 ?           0:00 sh -c /bin/sh -c 'ulimit -c unlimited; cd /data/oracle/product/10.2/crs/log/rac
  oracle  5480 16119   0 11:29:48 pts/2       0:00 bash
  oracle  2876     1   0   4
01 ?           0:00 /data/oracle/product/10.2/crs/opmn/bin/ons -d
  oracle 16119  1284   0 10:56:59 pts/2       0:00 -sh
  oracle 11023  5480   0 14:12:39 pts/2       0:00 grep ora

下面在節點1上啟動dbca來新增racnode3上的asm例項。

首先選項Oracle Real Application Clusters database選項,然後選擇配置ASM

在節點選擇出選擇全部三個節點,然後點選確定。

DBCA給出提示:ASM is present on the cluster but needs to be extended to the following nodes: [racnode3]. Do you want ASM to be extended?

確認後,dbca會在新增節點上啟動ASM例項。

隨後彈出對話方塊:

DBCA could not startup the ASM instance configured on this node. To proceed with ASM diskgroup management you need the ASM instance to be up and running. Do you want to recreate the ASM instance on this node?

確認後,dbca給出對話方塊輸入asm例項的SYS使用者密碼,以及ASM例項的SPFILEPFILE檔案位置。

檢查後臺程式,ASM例項已經啟動:

bash-3.00$ ps -ef|grep ora
  oracle 18894     1   0 14:17:50 ?           0:00 asm_mman_+ASM3
  oracle  1587  1584   0   4
01 pts/1       0:00 -sh
  oracle 21601  5480   0 14:59:24 pts/2       0:00 ps -ef
  oracle  2877  2876   0   4
01 ?           0:04 /data/oracle/product/10.2/crs/opmn/bin/ons -d
  oracle  1247  1244   0   3
31 pts/2       0:00 -sh
  oracle  1987     1   0   4
01 ?           0:00 sh -c sh -c 'ulimit -c unlimited; cd /data/oracle/product/10.2/crs/log/racnode3
    root  1996     1   0   4
01 ?           2:10 /data/oracle/product/10.2/crs/bin/crsd.bin reboot
  oracle 18882     1   0 14:17:50 ?           0:02 asm_diag_+ASM3
    root  2234  2180   0   4
01 ?           0:09 /data/oracle/product/10.2/crs/bin/oprocd run -t 1000 -m 500 -f
  oracle 18937     1   0 14:17:51 ?           0:00 asm_gmon_+ASM3
  oracle  2170  1987   0   4
01 ?           0:23 /data/oracle/product/10.2/crs/bin/evmd.bin
  oracle  2492  2170   0   4
01 ?           0:02 /data/oracle/product/10.2/crs/bin/evmlogger.bin -o /data/oracle/product/10.2/cr
  oracle  2263  2262   0   4
01 ?           0:00 /bin/sh -c ulimit -c unlimited; cd /data/oracle/product/10.2/crs/log/racnode3/c
  oracle  2264  2263   0   4
01 ?           3:51 /data/oracle/product/10.2/crs/bin/ocssd.bin
  oracle 18884     1   0 14:17:50 ?           0:00 asm_psp0_+ASM3
  oracle  2262  2181   0   4
01 ?           0:00 sh -c /bin/sh -c 'ulimit -c unlimited; cd /data/oracle/product/10.2/crs/log/rac
  oracle  5480 16119   0 11:29:48 pts/2       0:00 bash
  oracle  2876     1   0   4
01 ?           0:00 /data/oracle/product/10.2/crs/opmn/bin/ons -d
  oracle 18890     1   0 14:17:50 ?           0:04 asm_lms0_+ASM3
  oracle 16119  1284   0 10:56:59 pts/2       0:00 -sh
  oracle 18888     1   0 14:17:50 ?           0:04 asm_lmd0_+ASM3
  oracle 18886     1   0 14:17:50 ?           0:04 asm_lmon_+ASM3
  oracle 18875     1   0 14:17:49 ?           0:01 asm_pmon_+ASM3
  oracle 18896     1   0 14:17:50 ?           0:00 asm_dbw0_+ASM3
  oracle 18900     1   0 14:17:50 ?           0:00 asm_lgwr_+ASM3
  oracle 18902     1   0 14:17:50 ?           0:00 asm_ckpt_+ASM3
  oracle 18913     1   0 14:17:51 ?           0:00 asm_smon_+ASM3
  oracle 18928     1   0 14:17:51 ?           0:00 asm_rbal_+ASM3
  oracle 19072     1   0 14:17:56 ?           0:01 /data/oracle/product/10.2/database/bin/racgimon daemon ora.racnode3.ASM3.asm
  oracle 18968     1   0 14:17:52 ?           0:01 asm_lck0_+ASM3
  oracle 20168     1   0 14:58:26 ?           0:00 asm_pz98_+ASM3
  oracle 21602  5480   0 14:59:24 pts/2       0:00 grep ora
  oracle 19315     1   0 14:57:51 ?           0:00 asm_pz99_+ASM3

 

 

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

相關文章