3 安装 Clusterware
3.1 下载并解压 Oracle Clusterware 安装软件
# unzip linux_11gR1_clusterware.zip –d /stage
3.2 安装Clusterware
Step 1 到解压目录执行 ./runInstaller
Step 2 指定inventory目录以及安装用户组
Step 3 指定CRS Home
Step 4 输入集群中的节点信息,与/etc/hosts里面的信息保持一致
Step 5 指定节点公网/私网信息
Step 6 指定OCR 文件的路径
Step 7 指定Voting File文件的位置
Step 8 开始安装
Step 9 在所有节点上依次执行这些脚本(请注意一个节点上所有脚本执行完毕,才能去另外的节点执行)
[root@rac1_13 crs_13]# /data/crs/root.sh
Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up Network socket directories
Oracle Cluster Registry configuration upgraded successfully
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node
node 1: rac1_13 rac1_13-priv rac1_13
node 2: rac2_13 rac2_13-priv rac2_13
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Now formatting voting device: /crs_13/votingfile
Format of 1 voting devices complete.
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
Cluster Synchronization Services is active on these nodes.
rac1_13
Cluster Synchronization Services is inactive on these nodes.
rac2_13
Local node checking complete. Run root.sh on remaining nodes to start CRS daemons
[root@rac2_13 crs]# sh root.sh
Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up Network socket directories
Oracle Cluster Registry configuration upgraded successfully
clscfg: EXISTING configuration version 4 detected.
clscfg: version 4 is 11 Release 1.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node
node 1: rac1_13 rac1_13-priv rac1_13
node 2: rac2_13 rac2_13-priv rac2_13
clscfg: Arguments check out successfully.
NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 30 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
Cluster Synchronization Services is active on these nodes.
rac1_13
rac2_13
Cluster Synchronization Services is active on all the nodes.
Waiting for the Oracle CRSD and EVMD to start
Oracle CRS stack installed and running under init(1M)
Running vipca(silent) for configuring nodeapps
Creating VIP application resource on (2) nodes...
Creating GSD application resource on (2) nodes...
Creating ONS application resource on (2) nodes...
Starting VIP application resource on (2) nodes...
Starting GSD application resource on (2) nodes...
Starting ONS application resource on (2) nodes...
Done.
脚本都执行完毕后,进入下一步。
Step 10 配置确认
Step 11 结束安装
3.3 查看CRS状态
[root@rac1_13 bin]# ./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora...._13.gsd application ONLINE ONLINE rac1_13
ora...._13.ons application ONLINE ONLINE rac1_13
ora...._13.vip application ONLINE ONLINE rac1_13
ora...._13.gsd application ONLINE ONLINE rac2_13
ora...._13.ons application ONLINE ONLINE rac2_13
ora...._13.vip application ONLINE ONLINE rac2_13
[root@rac2_13 bin]# ./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora...._13.gsd application ONLINE ONLINE rac1_13
ora...._13.ons application ONLINE ONLINE rac1_13
ora...._13.vip application ONLINE ONLINE rac1_13
ora...._13.gsd application ONLINE ONLINE rac2_13
ora...._13.ons application ONLINE ONLINE rac2_13
ora...._13.vip application ONLINE ONLINE rac2_13
[root@rac1_13 bin]# ps -ef|grep d.bin
oracle 20999 20998 0 06:45 00:00:00 /data/crs/bin/evmd.bin
root 21105 20310 0 06:45 00:00:00 /data/crs/bin/crsd.bin reboot
oracle 21654 21176 0 06:45 00:00:00 /data/crs/bin/ocssd.bin
root 26087 5276 0 06:54 pts/0 00:00:00 grep d.bin
到这里Oracle Clusterware的安装完毕。
Oracel Real Application Cluster的安装和数据库的创建在这里就不介介绍了