相关文章:《静默(silent)安装Oracle Database 11gR2软件》 http://space.itpub.net/23135684/viewspace-741933
《11gR2使用dbca静默(silent)创建RAC数据库》 http://space.itpub.net/?uid-23135684-action-viewspace-itemid-747223
要在已经准备好的rac1和rac2两台服务器上安装Oracle 11gR2 RAC,下面讨论以静默(silent)的方式安装Grid Infrastructure软件。
1.手动建立rac1和rac2节点之间grid用户的有效性。
创建过程
配置完成之后,在两个节点执行以下的命令,使得有效性生效:
$ssh rac1 date
$ssh rac2 date
2.使用CVU工具执行以下的命令验证预安装环境:
2.使用CVU工具执行以下的命令验证预安装环境:
./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -r 11gR2 -verbose
Performing pre-checks for cluster services setup
Checking node reachability...
Check: Node reachability from node "rac1"
Destination Node Reachable?
------------------------------------ ------------------------
rac2 yes
rac1 yes
Result: Node reachability check passed from node "rac1"
Checking user equivalence...
Check: User equivalence for user "grid"
Node Name Status
------------------------------------ ------------------------
rac2 passed
rac1 passed
Result: User equivalence check passed for user "grid"
Checking node connectivity...
Checking hosts config file...
Node Name Status
------------------------------------ ------------------------
rac2 passed
rac1 passed
Verification of the hosts config file successful
Interface information for node "rac2"
Name IP Address Subnet Gateway Def. Gateway HW Address MTU
------ --------------- --------------- --------------- --------------- ----------------- ------
eth5 192.168.100.2 192.168.100.0 0.0.0.0 11.11.2.254 00:10:18:C2:F9:9E 1500
bond0 11.11.2.12 11.11.2.0 0.0.0.0 11.11.2.254 30:F7:0D:08:53:97 1500
bond1 11.11.0.2 11.11.0.0 0.0.0.0 11.11.2.254 30:F7:0D:08:53:96 1500
Interface information for node "rac1"
Name IP Address Subnet Gateway Def. Gateway HW Address MTU
------ --------------- --------------- --------------- --------------- ----------------- ------
eth5 192.168.100.1 192.168.100.0 0.0.0.0 11.11.2.254 00:10:18:C2:F7:46 1500
bond0 11.11.2.11 11.11.2.0 0.0.0.0 11.11.2.254 30:F7:0D:08:56:D3 1500
bond1 11.11.0.1 11.11.0.0 0.0.0.0 11.11.2.254 30:F7:0D:08:56:D2 1500
3.编辑响应文件。
切换到Grid Infrastructure安装介质目录,找到response目录,编辑grid_install.rsp文件根据提示修改grid_install.rsp文件的内容,下面是对grid_install.rsp文件修改的内容(仅供修改参考,不可直接拷贝使用):
本次配置完整的grid_install.rsp响应文件可以到这里 下载grid_install.rsp。
4.静默安装Grid Infrastructure软件。
以grid用户切换到Grid Infrastructure安装介质目录,执行以下的命令开始静默安装Grid Infrastructure软件:
3.编辑响应文件。
切换到Grid Infrastructure安装介质目录,找到response目录,编辑grid_install.rsp文件根据提示修改grid_install.rsp文件的内容,下面是对grid_install.rsp文件修改的内容(仅供修改参考,不可直接拷贝使用):
oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v11_2_0
ORACLE_HOSTNAME=
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
oracle.install.option=CRS_CONFIG
ORACLE_BASE=/u01/app/gridbase
ORACLE_HOME=/u01/app/grid/11.2.0
oracle.install.asm.OSDBA=asmdba
oracle.install.asm.OSOPER=asmoper
oracle.install.asm.OSASM=asmadmin
oracle.install.crs.config.gpnp.scanName=wstrac.scan.com
oracle.install.crs.config.gpnp.scanPort=1521
oracle.install.crs.config.clusterName=rac-cluster
oracle.install.crs.config.gpnp.configureGNS=false
oracle.install.crs.config.clusterNodes=rac1:rac1vip,rac2:rac2vip
oracle.install.crs.config.networkInterfaceList=bond0:11.11.2.0:1,bond1:11.11.0.0:2
oracle.install.crs.config.storageOption=ASM_STORAGE
oracle.install.crs.config.useIPMI=false
oracle.install.asm.SYSASMPassword=oracle_Schic1
oracle.install.asm.diskGroup.name=OCRVDISK
oracle.install.asm.diskGroup.redundancy=NORMAL
oracle.install.asm.diskGroup.AUSize=1
oracle.install.asm.diskGroup.disks=/dev/oracleasm/disks/OCRVDISK1,/dev/oracleasm/disks/OCRVDISK2,/dev/oracleasm/disks/OCRVDISK3,/dev/oracleasm/disks/OCRVDISK4
oracle.install.asm.diskGroup.diskDiscoveryString=/dev/oracleasm/disks/*
oracle.install.asm.monitorPassword=oracle_Schic1
oracle.install.asm.upgradeASM=false
本次配置完整的grid_install.rsp响应文件可以到这里 下载grid_install.rsp。
4.静默安装Grid Infrastructure软件。
以grid用户切换到Grid Infrastructure安装介质目录,执行以下的命令开始静默安装Grid Infrastructure软件:
[grid@rac1 grid]$ ./runInstaller -responseFile /u01/soft/grid/response/grid_install.rsp -silent -ignorePrereq -showProgress
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 120 MB. Actual 43815 MB Passed
Checking swap space: must be greater than 150 MB. Actual 10236 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-10-24_11-22-31PM. Please wait ...[grid@rac1 grid]$ You can find the log of this install session at:
/u01/app/oraInventory/logs/installActions2012-10-24_11-22-31PM.log
Prepare in progress.
.................................................. 5% Done.
Prepare successful.
Copy files in progress.
.................................................. 10% Done.
.................................................. 16% Done.
.................................................. 21% Done.
.................................................. 26% Done.
Copy files successful.
..........
Link binaries in progress.
Link binaries successful.
.................................................. 34% Done.
Setup files in progress.
Setup files successful.
.................................................. 41% Done.
Perform. remote operations in progress.
.................................................. 48% Done.
Perform. remote operations successful.
The installation of Oracle Grid Infrastructure was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2012-10-24_11-22-31PM.log' for more details.
.................................................. 97% Done.
Execute Root Scripts in progress.
As a root user, execute the following script(s):
1. /u01/app/oraInventory/orainstRoot.sh
2. /u01/app/grid/11.2.0/root.sh
Execute /u01/app/oraInventory/orainstRoot.sh on the following nodes:
[rac1, rac2]
Execute /u01/app/grid/11.2.0/root.sh on the following nodes:
[rac1, rac2]
.................................................. 100% Done.
Execute Root Scripts successful.
As install user, execute the following script. to complete the configuration.
1. /u01/app/grid/11.2.0/cfgtoollogs/configToolAllCommands
Note:
1. This script. must be run on the same system from where installer was run.
2. This script. needs a small password properties file for configuration assistants that require passwords (refer to install guide documentation).
Successfully Setup Software.
执行./runInstaller -help可以看到详细的参数信息。
安装确实要比图形化要快些,根据上面的提示执行相关的脚本。
1).在两个节点分别执行orainstRoot.sh和root.sh脚本:
[root@rac1 bin]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script. is complete.
[root@rac1 bin]# /u01/app/grid/11.2.0/root.sh
Check /u01/app/grid/11.2.0/install/root_rac1_2012-10-24_23-44-41.log for the output of root script
执行tail -f /u01/app/grid/11.2.0/install/root_rac1_2012-10-24_23-44-41.log可以看到详细的输出。
2).最后在安装节点执行的命令完成配置工作:
[grid@rac1 grid]$ /u01/app/grid/11.2.0/cfgtoollogs/configToolAllCommands
Setting the invPtrLoc to /u01/app/grid/11.2.0/oraInst.loc
perform. - mode is starting for action: configure
perform. - mode finished for action: configure
You can see the log file: /u01/app/grid/11.2.0/cfgtoollogs/oui/configActions2012-10-24_11-59-03-PM.log
3).检查Clusterware环境:
[root@rac2 bin]# ./crsctl check cluster -all
**************************************************************
rac1:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
rac2:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
--end--
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23135684/viewspace-747199/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/23135684/viewspace-747199/