Solaris10下Silent模式安裝Oracle1106RAC環境(四)

yangtingkun發表於2009-01-24

主機環境基本上和前面文章中描述的SOLARIS10安裝Oracle1106rac的環境基本完全一致,最主要的區別在於沒有了VOLUMN CLUSTER MANAGER,於是這裡打算使用OracleASM。由於安裝操作沒有什麼區別,所以這次安裝選擇了SILENT靜默模式來安裝RAC

描述SILENT模式下資料庫軟體安裝的準備工作。

Solaris10Silent模式安裝Oracle1106RAC環境(一):http://yangtingkun.itpub.net/post/468/477442

Solaris10Silent模式安裝Oracle1106RAC環境(二):http://yangtingkun.itpub.net/post/468/477443

Solaris10Silent模式安裝Oracle1106RAC環境(三):http://yangtingkun.itpub.net/post/468/477444

 

 

CLUSTER安裝完成,下面開始資料庫軟體的安裝,由於11gCLUSTER安裝完畢後會將$ORA_CRS_HOME的所有父目錄許可權置為root,因此首先需要將許可權改回oracle

root@ser1 # chown oracle:oinstall /data
root@ser1 # chown oracle:oinstall /data/oracle
root@ser1 # chown oracle:oinstall /data/oracle/product
root@ser1 # chown oracle:oinstall /data/oracle/product/11.1

下面檢查安裝資料庫的條件是否滿足:

$ ./runcluvfy.sh stage -pre dbinst -n ser1,ser2 -verbose

Performing pre-checks for database installation

Checking node reachability...

Check: Node reachability from node "ser1"
  Destination Node                      Reachable?             
  ------------------------------------  ------------------------
  ser1                                  yes                    
  ser2                                  yes                    
Result: Node reachability check passed from node "ser1".


Checking user equivalence...

Check: User equivalence for user "oracle"
  Node Name                             Comment                
  ------------------------------------  ------------------------
  ser2                                  passed                 
  ser1                                  passed                 
Result: User equivalence check passed for user "oracle".

Checking administrative privileges...

Check: Existence of user "oracle"
  Node Name     User Exists               Comment                
  ------------  ------------------------  ------------------------
  ser2          yes                       passed                 
  ser1          yes                       passed                 
Result: User existence check passed for "oracle".

Check: Existence of group "oinstall"
  Node Name     Status                    Group ID               
  ------------  ------------------------  ------------------------
  ser2          exists                    100                    
  ser1          exists                    100                    
Result: Group existence check passed for "oinstall".

Check: Membership of user "oracle" in group "oinstall" [as Primary]
  Node Name         User Exists   Group Exists  User in Group  Primary       Comment    
  ----------------  ------------  ------------  ------------  ------------  ------------
  ser2              yes           yes           yes           yes           passed     
  ser1              yes           yes           yes           yes           passed     
Result: Membership check for user "oracle" in group "oinstall" [as Primary] passed.

Check: Existence of group "dba"
  Node Name     Status                    Group ID               
  ------------  ------------------------  ------------------------
  ser2          exists                    101                    
  ser1          exists                    101                    
Result: Group existence check passed for "dba".

Check: Membership of user "oracle" in group "dba"
  Node Name         User Exists   Group Exists  User in Group  Primary       Comment    
  ----------------  ------------  ------------  ------------  ------------  ------------
  ser2              yes           yes           yes           no            passed     
  ser1              yes           yes           yes           no            passed     
Result: Membership check for user "oracle" in group "dba" passed.

Administrative privileges check passed.

Checking node connectivity...


Interface information for node "ser2"
  Interface Name    IP Address    Subnet        Subnet Gateway  Default Gateway  Hardware Address
  ----------------  ------------  ------------  ------------  ------------  ------------
  ce0               172.0.2.63    172.0.2.0     172.0.2.63    UNKNOWN       00:14:4f:ad:4f:b6
  ce0               172.0.2.69    172.0.2.0     172.0.2.63    UNKNOWN                  
  ce1               10.0.2.2      10.0.2.0      10.0.2.2      UNKNOWN       00:14:4f:ad:4f:b6


Interface information for node "ser1"
  Interface Name    IP Address    Subnet        Subnet Gateway  Default Gateway  Hardware Address
  ----------------  ------------  ------------  ------------  ------------  ------------
  ce0               172.0.2.62    172.0.2.0     172.0.2.62    UNKNOWN       00:14:4f:ad:4a:a2
  ce0               172.0.2.68    172.0.2.0     172.0.2.62    UNKNOWN                  
  ce1               10.0.2.1      10.0.2.0      10.0.2.1      UNKNOWN       00:14:4f:ad:4a:a2


Check: Node connectivity of subnet "172.0.2.0"
  Source                          Destination                     Connected?     
  ------------------------------  ------------------------------  ----------------
  ser2:ce0                        ser2:ce0                        yes            
  ser2:ce0                        ser1:ce0                        yes            
  ser2:ce0                        ser1:ce0                        yes            
  ser2:ce0                        ser1:ce0                        yes            
  ser2:ce0                        ser1:ce0                        yes            
  ser1:ce0                        ser1:ce0                        yes            
Result: Node connectivity check passed for subnet "172.0.2.0" with node(s) ser2,ser1.

Check: Node connectivity of subnet "10.0.2.0"
  Source                          Destination                     Connected?     
  ------------------------------  ------------------------------  ----------------
  ser2:ce1                        ser1:ce1                        yes            
Result: Node connectivity check passed for subnet "10.0.2.0" with node(s) ser2,ser1.

Interfaces found on subnet "172.0.2.0" that are likely candidates for VIP:
ser2 ce0:172.0.2.63 ce0:172.0.2.69
ser1 ce0:172.0.2.62 ce0:172.0.2.68

Interfaces found on subnet "10.0.2.0" that are likely candidates for VIP:
ser2 ce1:10.0.2.2
ser1 ce1:10.0.2.1

WARNING:
Could not find a suitable set of interfaces for the private interconnect.

Result: Node connectivity check passed.


Checking system requirements for 'database'...

Check: Total memory
  Node Name     Available                 Required                  Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          32GB (33554432KB)         1GB (1048576KB)           passed   
  ser1          32GB (33554432KB)         1GB (1048576KB)           passed   
Result: Total memory check passed.

Check: Free disk space in "/tmp" dir
  Node Name     Available                 Required                  Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          55.36GB (58046048KB)      400MB (409600KB)          passed   
  ser1          54.43GB (57073456KB)      400MB (409600KB)          passed   
Result: Free disk space check passed.

Check: Swap space
  Node Name     Available                 Required                  Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          29.3GB (30721336KB)       1.5GB (1572864KB)         passed   
  ser1          29.3GB (30721336KB)       1.5GB (1572864KB)         passed   
Result: Swap space check passed.

Check: System architecture
  Node Name     Available                 Required                  Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          64-bit sparcv9 kernel modules  64-bit                    passed   
  ser1          64-bit sparcv9 kernel modules  64-bit                    passed   
Result: System architecture check passed.

Check: Kernel version
  Node Name     Available                 Required                  Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          10,REV=2007.08.16.13.29   10,REV=2005.01.22.19.14   passed   
  ser1          10,REV=2007.08.16.13.29   10,REV=2005.01.22.19.14   passed   
Result: Kernel version check passed.

Check: Package existence for "SUNWarc"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWarc:11.10.0                 passed         
  ser1                            SUNWarc:11.10.0                 passed         
Result: Package existence check passed for "SUNWarc".

Check: Package existence for "SUNWbtool"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWbtool:11.10.0               passed         
  ser1                            SUNWbtool:11.10.0               passed         
Result: Package existence check passed for "SUNWbtool".

Check: Package existence for "SUNWhea"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWhea:11.10.0                 passed         
  ser1                            SUNWhea:11.10.0                 passed         
Result: Package existence check passed for "SUNWhea".

Check: Package existence for "SUNWlibm"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWlibm:5.10                   passed         
  ser1                            SUNWlibm:5.10                   passed         
Result: Package existence check passed for "SUNWlibm".

Check: Package existence for "SUNWlibms"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWlibms:5.10                  passed         
  ser1                            SUNWlibms:5.10                  passed         
Result: Package existence check passed for "SUNWlibms".

Check: Package existence for "SUNWsprot"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWsprot:5.10                  passed         
  ser1                            SUNWsprot:5.10                  passed         
Result: Package existence check passed for "SUNWsprot".

Check: Package existence for "SUNWtoo"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWtoo:11.10.0                 passed         
  ser1                            SUNWtoo:11.10.0                 passed         
Result: Package existence check passed for "SUNWtoo".

Check: Package existence for "SUNWxwfnt"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWxwfnt:6.6.2.7400            passed         
  ser1                            SUNWxwfnt:6.6.2.7400            passed         
Result: Package existence check passed for "SUNWxwfnt".

Check: Package existence for "SUNWlibC"
  Node Name                       Status                          Comment        
  ------------------------------  ------------------------------  ----------------
  ser2                            SUNWlibC:5.10                   passed         
  ser1                            SUNWlibC:5.10                   passed         
Result: Package existence check passed for "SUNWlibC".

Check: Kernel parameter for "project.max-sem-ids"
  Node Name     Configured                Required                  Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          128                       100                       passed   
  ser1          128                       100                       passed   
Result: Kernel parameter check passed for "project.max-sem-ids".

Check: Kernel parameter for "process.max-sem-nsems"
  Node Name     Configured                Required                  Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          512                       256                       passed   
  ser1          512                       256                       passed   
Result: Kernel parameter check passed for "process.max-sem-nsems".

Check: Kernel parameter for "project.max-shm-memory"
  Node Name     Configured                Required                  Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          2147483647900             4294967295                passed   
  ser1          2147483647900             4294967295                passed   
Result: Kernel parameter check passed for "project.max-shm-memory".

Check: Kernel parameter for "project.max-shm-ids"
  Node Name     Configured                Required                  Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          128                       100                       passed   
  ser1          128                       100                       passed   
Result: Kernel parameter check passed for "project.max-shm-ids".

Check: Group existence for "dba"
  Node Name     Status                    Comment                
  ------------  ------------------------  ------------------------
  ser2          exists                    passed                 
  ser1          exists                    passed                 
Result: Group existence check passed for "dba".

Check: User existence for "nobody"
  Node Name     Status                    Comment                
  ------------  ------------------------  ------------------------
  ser2          exists                    passed                 
  ser1          exists                    passed                 
Result: User existence check passed for "nobody".

System requirement passed for 'database'

Checking CRS integrity...

Checking daemon liveness...

Check: Liveness for "CRS daemon"
  Node Name                             Running                
  ------------------------------------  ------------------------
  ser2                                  yes                    
  ser1                                  yes                    
Result: Liveness check passed for "CRS daemon".

Checking daemon liveness...

Check: Liveness for "CSS daemon"
  Node Name                             Running                
  ------------------------------------  ------------------------
  ser2                                  yes                    
  ser1                                  yes                    
Result: Liveness check passed for "CSS daemon".

Checking daemon liveness...

Check: Liveness for "EVM daemon"
  Node Name                             Running                
  ------------------------------------  ------------------------
  ser2                                  yes                    
  ser1                                  yes                    
Result: Liveness check passed for "EVM daemon".

Liveness of all the daemons
  Node Name     CRS daemon                CSS daemon                EVM daemon
  ------------  ------------------------  ------------------------  ----------
  ser2          yes                       yes                       yes      
  ser1          yes                       yes                       yes      

Checking CRS health...

Check: Health of CRS
  Node Name                             CRS OK?                
  ------------------------------------  ------------------------
  ser2                                  yes                    
  ser1                                  yes                    
Result: CRS health check passed.

CRS integrity check passed.

Checking node application existence...

Checking existence of VIP node application
  Node Name     Required                  Status                    Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          yes                       exists                    passed   
  ser1          yes                       exists                    passed   
Result: Check passed.

Checking existence of ONS node application
  Node Name     Required                  Status                    Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          no                        exists                    passed   
  ser1          no                        exists                    passed   
Result: Check passed.

Checking existence of GSD node application
  Node Name     Required                  Status                    Comment  
  ------------  ------------------------  ------------------------  ----------
  ser2          no                        exists                    passed   
  ser1          no                        exists                    passed   
Result: Check passed.


Pre-check for database installation was successful.

下面編輯my_oracle.rsp檔案,新增下面的內容:

RESPONSEFILE_VERSION=2.2.1.0.0

UNIX_GROUP_NAME="oinstall"

FROM_LOCATION="/data/database/stage/products.xml"

ORACLE_BASE="/data/oracle"

ORACLE_HOME="/data/oracle/product/11.1/database"

ORACLE_HOME_NAME="OraDbHome1"

TOPLEVEL_COMPONENT={"oracle.server","11.1.0.6.0"}

DEINSTALL_LIST={"oracle.server","11.1.0.6.0"}

SHOW_ROOTSH_CONFIRMATION=true

CLUSTER_NODES={"ser1","ser2"}

COMPONENT_LANGUAGES={"en","zh_CN"}

INSTALL_TYPE="EE"

s_nameForDBAGrp="dba"

s_nameForOPERGrp="dba"

s_nameForASMGrp="dba"

n_configurationOption=3

s_ASMSYSPassword=""

s_ASMSYSPasswordAgain=""


sl_upgradableSIDBInstances={}
sl_upgradableRACDBInstances={}

n_dbSelection=0

b_stateOfUpgradeASMCheckbox=false

b_stateOfUpgradeDBCheckbox=false

b_oneClick=false

s_dlgASMCfgRedundancyValue=""

s_dlgASMCfgExistingFreeSpace="0"

s_dlgASMCfgNewDisksSize=""

s_dlgASMCfgAdditionalSpaceNeeded="0 MB"

n_configTabSelected=0

n_dbCharSetOption=3

這些引數都是從Oracle提供的enterprise.rsp檔案中篩選出來的。

簡單描述一下幾個比較重要的引數的含義,一些顯而易見的引數比如ORACLE_HOME等就不再描述了:

FROM_LOCATION設定Oracle安裝軟體需要讀取的xml檔案,這個最好透過絕對路徑指出,設定錯誤則安裝無法進行。

SHOW_ROOTSH_CONFIRMATION設定在安裝結束後需要執行root.sh時進行提示。除了這個引數外,其他以SHOW開頭的引數都可以設定為FALSE

CLUSTER_NODES設定CLUSTER資料庫安裝的節點資訊。

COMPONENT_LANGUAGES設定安裝的語言,這裡將簡體中文新增上去。

INSTALL_TYPE選擇“EE”表示安裝型別為企業版。

s_nameForDBAGrps_nameForOPERGrps_nameForASMGrp分別設定DBAOPERASM管理員的組資訊,這裡沒有設定多餘的組資訊都使用dba來代替。

n_configurationOption設定配置型別,1表示建立資料庫,2表示配置ASM例項,3表示只安裝軟體。這裡選擇安裝軟體。

s_ASMSYSPasswords_ASMSYSPasswordAgain這兩個引數需要進行檢查,即使像當前這樣不安裝ASM,這兩個密碼的引數設定也需要存在,只需要簡單的設定為空即可。

sl_upgradableSIDBInstances開始到結束的所有引數,都是silent正常安裝所必須的引數,這些引數明確說明不要改動引數的設定,因此只需要在引數檔案中保留即可。

下面就可以開始資料庫軟體的安裝了。

 

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

相關文章