Oracle 11gR2 静默安装RAC 集群和数据库软件(2)

2. 安装检查通过之后,

配置grid.rsp文件。具体信息

###############################################################################
 ## Copyright(c) Oracle Corporation 1998,2011. All rights reserved.          ##
 ##                                                                          ##
 ## Specify values for the variables listed below to customize                ##
 ## your installation.                                                        ##
 ##                                                                          ##
 ## Each variable is associated with a comment. The comment                  ##
 ## can help to populate the variables with the appropriate                  ##
 ## values.                    ##
 ##                                                                          ##
 ## IMPORTANT NOTE: This file contains plain text passwords and              ##
 ## should be secured to have read permission only by oracle user            ##
 ## or db administrator who owns this installation.                          ##
 ##                                                                          ##
 ###############################################################################


 ###############################################################################
 ##                                                                          ##
 ## Instructions to fill this response file                                  ##
 ## To install and configure 'Grid Infrastructure for Cluster'                ##
 ##  - Fill out sections A,B,C,D,E,F and G                                    ##
 ##  - Fill out section G if OCR and voting disk should be placed on ASM      ##
 ##                                                                          ##
 ## To install and configure 'Grid Infrastructure for Standalone server'      ##
 ##  - Fill out sections A,B and G                                            ##
 ##                                                                          ##
 ## To install software for 'Grid Infrastructure'                            ##
 ##  - Fill out sections A,B and C                                            ##
 ##                                                                          ##
 ## To upgrade clusterware and/or Automatic storage management of earlier    ##
 ## releases                                                                  ##
 ##  - Fill out sections A,B,C,D and H                                        ##
 ##                                                                          ##
 ###############################################################################

#------------------------------------------------------------------------------
 # Do not change the following system generated value.
 #------------------------------------------------------------------------------
 oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v11_2_0

###############################################################################
 #                                                                            #
 #                          SECTION A - BASIC                                  #
 #                                                                            #
 ###############################################################################

#-------------------------------------------------------------------------------
 # Specify the hostname of the system as set during the install. It can be used
 # to force the installation to use an alternative hostname rather than using the
 # first hostname found on the system. (e.g., for systems with multiple hostnames
 # and network interfaces)
 #-------------------------------------------------------------------------------
 ORACLE_HOSTNAME=nascds10.oracle.com

#-------------------------------------------------------------------------------
 # Specify the location which holds the inventory files.
 # This is an optional parameter if installing on 
 # Windows based Operating System.
 #-------------------------------------------------------------------------------
 INVENTORY_LOCATION=/u01/app/oraInventory

#-------------------------------------------------------------------------------
 # Specify the languages in which the components will be installed.           
 #
 # en  : English                  ja  : Japanese                 
 # fr  : French                  ko  : Korean                   
 # ar  : Arabic                  es  : Latin American Spanish   
 # bn  : Bengali                  lv  : Latvian                 
 # pt_BR: Brazilian Portuguese    lt  : Lithuanian               
 # bg  : Bulgarian                ms  : Malay                   
 # fr_CA: Canadian French          es_MX: Mexican Spanish         
 # ca  : Catalan                  no  : Norwegian               
 # hr  : Croatian                pl  : Polish                   
 # cs  : Czech                    pt  : Portuguese               
 # da  : Danish                  ro  : Romanian                 
 # nl  : Dutch                    ru  : Russian                 
 # ar_EG: Egyptian                zh_CN: Simplified Chinese       
 # en_GB: English (Great Britain)  sk  : Slovak                   
 # et  : Estonian                sl  : Slovenian               
 # fi  : Finnish                  es_ES: Spanish                 
 # de  : German                  sv  : Swedish                 
 # el  : Greek                    th  : Thai                     
 # iw  : Hebrew                  zh_TW: Traditional Chinese     
 # hu  : Hungarian                tr  : Turkish                 
 # is  : Icelandic                uk  : Ukrainian               
 # in  : Indonesian              vi  : Vietnamese               
 # it  : Italian                                                 
 #
 # all_langs  : All languages
 #
 # Specify value as the following to select any of the languages.
 # Example : SELECTED_LANGUAGES=en,fr,ja
 #
 # Specify value as the following to select all the languages.
 # Example : SELECTED_LANGUAGES=all_langs 
 #-------------------------------------------------------------------------------
 SELECTED_LANGUAGES=en

#-------------------------------------------------------------------------------
 # Specify the installation option.
 # Allowed values: CRS_CONFIG or HA_CONFIG or UPGRADE or CRS_SWONLY
 #  CRS_CONFIG - To configure Grid Infrastructure for cluster
 #  HA_CONFIG  - To configure Grid Infrastructure for stand alone server
 #  UPGRADE    - To upgrade clusterware software of earlier release
 #  CRS_SWONLY - To install clusterware files only (can be configured for cluster
 #                or stand alone server later)
 #-------------------------------------------------------------------------------
 oracle.install.option=CRS_CONFIG

#-------------------------------------------------------------------------------
 # Specify the complete path of the Oracle Base.
 #-------------------------------------------------------------------------------

ORACLE_BASE=/u01/app/grid

#-------------------------------------------------------------------------------
 # Specify the complete path of the Oracle Home.
 #-------------------------------------------------------------------------------
 ORACLE_HOME=/u01/app/11.2.0/grid

################################################################################
 #                                                                              #
 #                              SECTION B - GROUPS                              #
 #                                                                              #
 #  The following three groups need to be assigned for all GI installations.  #
 #  OSDBA and OSOPER can be the same or different.  OSASM must be different    #
 #  than the other two.                                                        #
 #  The value to be specified for OSDBA, OSOPER and OSASM group is only for    #
 #  Unix based Operating System.                                              #
 #                                                                              #
 ################################################################################
 #-------------------------------------------------------------------------------
 # The DBA_GROUP is the OS group which is to be granted OSDBA privileges.
 #-------------------------------------------------------------------------------
 oracle.install.asm.OSDBA=asmdba

#-------------------------------------------------------------------------------
 # The OPER_GROUP is the OS group which is to be granted OSOPER privileges.
 # The value to be specified for OSOPER group is optional.
 #-------------------------------------------------------------------------------
 oracle.install.asm.OSOPER=asmoper

#-------------------------------------------------------------------------------
 # The OSASM_GROUP is the OS group which is to be granted OSASM privileges. This
 # must be different than the previous two.
 #-------------------------------------------------------------------------------
 oracle.install.asm.OSASM=asmadmin

################################################################################
 #                                                                              #
 #                          SECTION C - SCAN                                  #
 #                                                                              #
 ################################################################################
 #-------------------------------------------------------------------------------
 # Specify a name for SCAN
 #-------------------------------------------------------------------------------
 oracle.install.crs.config.gpnp.scanName=cluster-scan1

#-------------------------------------------------------------------------------
 # Specify a unused port number for SCAN service
 #-------------------------------------------------------------------------------
 oracle.install.crs.config.gpnp.scanPort=1521

################################################################################
 #                                                                              #
 #                          SECTION D - CLUSTER & GNS                      #
 #                                                                              #
 ################################################################################
 #-------------------------------------------------------------------------------
 # Specify a name for the Cluster you are creating.
 #
 # The maximum length allowed for clustername is 15 characters. The name can be
 # any combination of lower and uppercase alphabets (A - Z), (0 - 9), hyphen(-)
 # and underscore(_).
 #-------------------------------------------------------------------------------
 oracle.install.crs.config.clusterName=nascds-cluster

#-------------------------------------------------------------------------------
 # Specify 'true' if you would like to configure Grid Naming Service(GNS), else
 # specify 'false'
 #-------------------------------------------------------------------------------
 oracle.install.crs.config.gpnp.configureGNS=false

#-------------------------------------------------------------------------------
 # Applicable only if you choose to configure GNS
 # Specify the GNS subdomain and an unused virtual hostname for GNS service
 # Additionally you may also specify if VIPs have to be autoconfigured
 #
 # Value for oracle.install.crs.config.autoConfigureClusterNodeVIP should be true
 # if GNS is being configured(oracle.install.crs.config.gpnp.configureGNS), false
 # otherwise.
 #-------------------------------------------------------------------------------
 oracle.install.crs.config.gpnp.gnsSubDomain=nascds.oracle.com
 oracle.install.crs.config.gpnp.gnsVIPAddress=10.182.208.1
 oracle.install.crs.config.autoConfigureClusterNodeVIP=false

#-------------------------------------------------------------------------------
 # Specify a list of public node names, and virtual hostnames that have to be
 # part of the cluster.
 #
 # The list should a comma-separated list of nodes.  Each entry in the list
 # should be a colon-separated string that contains 2 fields.
 #
 # The fields should be ordered as follows:
 # 1. The first field is for public node name.
 # 2. The second field is for virtual host name
 #    (specify as AUTO if you have chosen 'auto configure for VIP'
 #    i.e. autoConfigureClusterNodeVIP=true)
 #
 # Example: oracle.install.crs.config.clusterNodes=node1:node1-vip,node2:node2-vip
 #-------------------------------------------------------------------------------
 oracle.install.crs.config.clusterNodes=nascds10.oracle.com:nascds10-vip.oracle.com,nascds11.oracle.com:nascds11-vip.oracle.com

#-------------------------------------------------------------------------------
 # The value should be a comma separated strings where each string is as shown below
 # InterfaceName:SubnetMask:InterfaceType
 # where InterfaceType can be either "1", "2", or "3"
 # (1 indicates public, 2 indicates private, and 3 indicates the interface is not used)
 #
 # For example: eth0:140.87.24.0:1,eth1:10.2.1.0:2,eth2:140.87.52.0:3
 #
 #-------------------------------------------------------------------------------
 oracle.install.crs.config.networkInterfaceList=eth1:192.168.10.0:2,eth0:10.182.208.0:1

################################################################################
 #                                                                              #
 #                              SECTION E - STORAGE                            #
 #                                                                              #
 ################################################################################

#-------------------------------------------------------------------------------
 # Specify the type of storage to use for Oracle Cluster Registry(OCR) and Voting
 # Disks files
 # - ASM_STORAGE
 # - FILE_SYSTEM_STORAGE
 #-------------------------------------------------------------------------------
 oracle.install.crs.config.storageOption=ASM_STORAGE


 #-------------------------------------------------------------------------------
 # THIS PROPERTY NEEDS TO BE FILLED ONLY IN CASE OF WINDOWS INSTALL.
 # Specify a comma separated list of strings where each string is as shown below:
 # Disk Number:Partition Number:Drive Letter:Format Option
 # The Disk Number and Partition Number should refer to the location which has to
 # be formatted. The Drive Letter should refer to the drive letter that has to be
 # assigned. "Format Option" can be either of the following -
 # 1. SOFTWARE - Format to place software binaries.
 # 2. DATA - Format to place the OCR/VDSK files.
 #
 # For example: 1:2:P:DATA,1:3:Q:SOFTWARE,1:4:R:DATA,1:5:S:DATA
 #
 #-------------------------------------------------------------------------------
 oracle.install.crs.config.sharedFileSystemStorage.diskDriveMapping=

#-------------------------------------------------------------------------------
 # These properties are applicable only if FILE_SYSTEM_STORAGE is chosen for
 # storing OCR and voting disk
 # Specify the location(s) and redundancy for OCR and voting disks
 # Multiple locations can be specified, separated by commas.
 # In case of windows, mention the drive location that is specified to be
 # formatted for DATA in the above property.
 # Redundancy can be one of these:
 #    EXTERNAL - one(1) location should be specified for OCR and voting disk
 #    NORMAL - three(3) locations should be specified for OCR and voting disk
 # Example:
 #    For Unix based Operating System:
 #    oracle.install.crs.config.sharedFileSystemStorage.votingDiskLocations=/oradbocfs/storage/vdsk1,/oradbocfs/storage/vdsk2,/oradbocfs/storage/vdsk3
 #    oracle.install.crs.config.sharedFileSystemStorage.ocrLocations=/oradbocfs/storage/ocr1,/oradbocfs/storage/ocr2,/oradbocfs/storage/ocr3
 #    For Windows based Operating System:
 #    oracle.install.crs.config.sharedFileSystemStorage.votingDiskLocations=P:\vdsk1,R:\vdsk2,S:\vdsk3
 #    oracle.install.crs.config.sharedFileSystemStorage.ocrLocations=P:\ocr1,R:\ocr2,S:\ocr3
 #-------------------------------------------------------------------------------
 oracle.install.crs.config.sharedFileSystemStorage.votingDiskLocations=
 oracle.install.crs.config.sharedFileSystemStorage.votingDiskRedundancy=NORMAL
 oracle.install.crs.config.sharedFileSystemStorage.ocrLocations=
 oracle.install.crs.config.sharedFileSystemStorage.ocrRedundancy=NORMAL
               
 ################################################################################
 #                                                                              #
 #                              SECTION F - IPMI                              #
 #                                                                              #
 ################################################################################

#-------------------------------------------------------------------------------
 # Specify 'true' if you would like to configure Intelligent Power Management interface
 # (IPMI), else specify 'false'
 #-------------------------------------------------------------------------------
 oracle.install.crs.config.useIPMI=false

#-------------------------------------------------------------------------------
 # Applicable only if you choose to configure IPMI
 # i.e. oracle.install.crs.config.useIPMI=true
 # Specify the username and password for using IPMI service
 #-------------------------------------------------------------------------------
 oracle.install.crs.config.ipmi.bmcUsername=
 oracle.install.crs.config.ipmi.bmcPassword=

################################################################################
 #                                                                              #
 #                                SECTION G - ASM                              #
 #                                                                              #
 ################################################################################
 #-------------------------------------------------------------------------------
 # Specify a password for SYSASM user of the ASM instance
 #-------------------------------------------------------------------------------
 oracle.install.asm.SYSASMPassword=oracle

#-------------------------------------------------------------------------------
 # The ASM DiskGroup
 #
 # Example: oracle.install.asm.diskGroup.name=data
 #
 #-------------------------------------------------------------------------------
 oracle.install.asm.diskGroup.name=DATA

#-------------------------------------------------------------------------------
 # Redundancy level to be used by ASM.
 # It can be one of the following 
 # - NORMAL
 # - HIGH
 # - EXTERNAL
 # Example: oracle.install.asm.diskGroup.redundancy=NORMAL
 #
 #-------------------------------------------------------------------------------
 oracle.install.asm.diskGroup.redundancy=EXTERNAL

#-------------------------------------------------------------------------------
 # Allocation unit size to be used by ASM.
 # It can be one of the following
 # - 1
 # - 2
 # - 4
 # - 8
 # - 16
 # Example: oracle.install.asm.diskGroup.AUSize=4
 # size unit is MB
 #
 #-------------------------------------------------------------------------------
 oracle.install.asm.diskGroup.AUSize=1


 #-------------------------------------------------------------------------------
 # List of disks to create a ASM DiskGroup
 #
 # Example:
 #    For Unix based Operating System:
 #    oracle.install.asm.diskGroup.disks=/oracle/asm/disk1,/oracle/asm/disk2
 #    For Windows based Operating System:
 #    oracle.install.asm.diskGroup.disks=\\.\ORCLDISKDATA0,\\.\ORCLDISKDATA1
 #
 #-------------------------------------------------------------------------------
 oracle.install.asm.diskGroup.disks=/dev/oracleasm/disks/OCR

#-------------------------------------------------------------------------------
 # The disk discovery string to be used to discover the disks used create a ASM DiskGroup
 #
 # Example:
 #    For Unix based Operating System:
 #    oracle.install.asm.diskGroup.diskDiscoveryString=/oracle/asm/*
 #    For Windows based Operating System:
 #    oracle.install.asm.diskGroup.diskDiscoveryString=\\.\ORCLDISK*
 #
 #-------------------------------------------------------------------------------
 oracle.install.asm.diskGroup.diskDiscoveryString=/dev/oracleasm/disks/*

#-------------------------------------------------------------------------------
 # oracle.install.asm.monitorPassword=password
 #-------------------------------------------------------------------------------
 oracle.install.asm.monitorPassword=oracle

################################################################################
 #                                                                              #
 #                            SECTION H - UPGRADE                              #
 #                                                                              #
 ################################################################################
 #-------------------------------------------------------------------------------
 # Specify nodes for Upgrade.
 # For upgrade on Windows, installer overrides the value of this parameter to include
 # all the nodes of the cluster. However, the stack is upgraded one node at a time.
 # Hence, this parameter may be left blank for Windows.
 # Example: oracle.install.crs.upgrade.clusterNodes=node1,node2
 #-------------------------------------------------------------------------------
 oracle.install.crs.upgrade.clusterNodes=

#-------------------------------------------------------------------------------
 # For RAC-ASM only. oracle.install.asm.upgradeASM=true/false
 # Value should be 'true' while upgrading Cluster ASM of version 11gR2(11.2.0.1.0) and above
 #-------------------------------------------------------------------------------
 oracle.install.asm.upgradeASM=false
 #------------------------------------------------------------------------------
 # Specify the auto-updates option. It can be one of the following:
 # a.MYORACLESUPPORT_DOWNLOAD
 # b.OFFLINE_UPDATES
 # c.SKIP_UPDATES
 #------------------------------------------------------------------------------
 oracle.installer.autoupdates.option=SKIP_UPDATES
 #------------------------------------------------------------------------------
 # In case MYORACLESUPPORT_DOWNLOAD option is chosen, specify the location where
 # the updates are to be downloaded.
 # In case OFFLINE_UPDATES option is chosen, specify the location where the updates
 # are present.
 oracle.installer.autoupdates.downloadUpdatesLoc=
 #------------------------------------------------------------------------------
 # Specify the My Oracle Support Account Username which has the patches download privileges 
 # to be used for software updates.
 #  Example  : AUTOUPDATES_MYORACLESUPPORT_USERNAME=abc@oracle.com
 #------------------------------------------------------------------------------
 AUTOUPDATES_MYORACLESUPPORT_USERNAME=

#------------------------------------------------------------------------------
 # Specify the My Oracle Support Account Username password which has the patches download privileges 
 # to be used for software updates.
 #
 # Example    : AUTOUPDATES_MYORACLESUPPORT_PASSWORD=password
 #------------------------------------------------------------------------------
 AUTOUPDATES_MYORACLESUPPORT_PASSWORD=

#------------------------------------------------------------------------------
 # Specify the Proxy server name. Length should be greater than zero.
 #
 # Example    : PROXY_HOST=proxy.domain.com
 #------------------------------------------------------------------------------
 PROXY_HOST=

#------------------------------------------------------------------------------
 # Specify the proxy port number. Should be Numeric and atleast 2 chars.
 #
 # Example    : PROXY_PORT=25
 #------------------------------------------------------------------------------
 PROXY_PORT=0
 #------------------------------------------------------------------------------
 # Specify the proxy user name. Leave PROXY_USER and PROXY_PWD
 # blank if your proxy server requires no authentication.
 #
 # Example    : PROXY_USER=username
 #------------------------------------------------------------------------------
 PROXY_USER=

#------------------------------------------------------------------------------
 # Specify the proxy password. Leave PROXY_USER and PROXY_PWD 
 # blank if your proxy server requires no authentication.
 #
 # Example    : PROXY_PWD=password
 #------------------------------------------------------------------------------
 PROXY_PWD=
 #------------------------------------------------------------------------------
 # Specify the proxy realm.
 #
 # Example    : PROXY_REALM=metalink
 #------------------------------------------------------------------------------
 PROXY_REALM=

3. 使用以下命令来开始静默安装集群软件:
./runInstaller -silent -responseFile /home/grid/grid.rsp 

安装最后,会有类似
# You can find the log of this install session at: 
 # 
 # 
 # As a root user, execute the following script(s): 
 # 
 #        1. /u01/app/11.2.0/grid/root.sh 
 # 
 # As install user, execute the following script to complete the configuration. 
 # 
 #        1. /u01/app/11.2.0/grid/cfgtoollogs/configToolAllCommands
 # 
 #        Note: 
 # 
 #        1. This script should be run in the same environment from where the installer has been run. 
 # 
 #        2. This script needs a small password properties file for configuration assistants that require passwords (refer to install guide documentation). 
 # 
 # Successfully Setup Software. 

之后,在两个节点分别使用ROOT用户来执行 root.sh脚本。
 在 nascds10 节点,登录root用户,执行
cd <GI_HOME>
 ./root.sh
在 nascds11 节点,登录root用户,执行
cd <GI_HOME>
 ./root.sh

在所有节点执行root.sh脚本成功之后,回到发起的nascds10节点,使用grid用户继续执行 以上安装日志中提到的configToolAllCommands

首先需要创建一个cfgrsp.properties空文件来确保configToolAllCommands脚本的成功:

$ touch cfgrsp.properties
 su - root
 # chmod 600 cfgrsp.properties 
 # ls -rtl /u01/app/11.2.0/grid/cfgtoollogs

-rw------- 1 grid oinstall 330 Apr 30 11:50 /u01/app/11.2.0/grid/cfgtoollogs/cfgrsp.properties 

su - grid
 $cd /u01/app/11.2.0/grid/cfgtoollogs/
 $./configToolAllCommands RESPONSE_FILE=/u01/app/11.2.0/grid/cfgtoollogs/cfgrsp.properties
 cfgrsp.properties配置信息如下:

oracle.assistants.server|S_SYSPASSWORD=oracle
 oracle.assistants.server|S_SYSTEMPASSWORD=oracle
 oracle.assistants.server|S_SYSMANPASSWORD=oracle
 oracle.assistants.server|S_DBSNMPPASSWORD=oracle
 oracle.assistants.server|S_HOSTUSERPASSWORD=oracle
 oracle.assistants.server|S_ASMSNMPPASSWORD=oracle

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/6cd0da9b96ca817f8f6e5245e8a869f9.html