ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Solaris10下Silent模式安装Oracle1106RAC环境(四)

Solaris10下Silent模式安装Oracle1106RAC环境(四)

原创 Linux操作系统 作者:yangtingkun 时间:2009-01-24 23:21:19 0 删除 编辑

主机环境基本上和前面文章中描述的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/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
暂无介绍

注册时间:2007-12-29

  • 博文量
    1955
  • 访问量
    10542476