一、安装clusterware:
1、创建/usr/local/bin目录,然后链接ssh和scp过去,否则安装过程中会报错的。
2、在安装之前创建RAC框架资源组:
3、运行clusterware包里的rootpre.sh文件:
如果没有创建RAC框架资源组,执行rootpre.sh脚本是不会发现sun cluster已处于运行状态。如果处于运行状态,它会创建/opt/ORCLcluster目录,以及创建对应的文件。
此脚本必须在两个节点以root身份执行。
4、安装clusterware:
在安装的过程中,会出现好几个网卡,只选择一个作为public,私有的选择clprivnet0,其他的设置为Don’t use即可。
安装完成后,会要求以root用户运行两个脚本,在最后一个节点执行root脚本时,它会配置相应的VIP等等。
5、安装完clusterware后,运行netca程序,创建cluster监听器。
6、创建oracle clusterware框架资源组:
二、安装database:
如果要打补丁,安装的时候只选择install software only,完成后再打补丁,打完补丁执行dbca程序,首先创建ASM,在这个过程中,要指定下磁盘的发现路径,我这里使用的是did设备,所以再指定的时路径应该是/dev/did/rdsk/*,一定要加上这个*号,否则也是发现不到磁盘的。还有就是did设备的权限以及属主问题,属主必须是oracle:dba,权限是660,如图:
这里面还有其他的细节,请参考相关文档。
创建完成后,创建ASM实例资源以及database实例资源:
三、结合sun cluster和oracle CRS ASM资源:
在两个节点执行以下命令:
四、检查:
运行sun cluster命令检查资源以及资源组状态:
运行oracle的srvctl命令,检查各个服务是否已处于online状态:
检查ASM:
检查数据库实例:
检查crs状态:
最后两个以sun打头的就是结合sun cluster和oracle CRS ASM的资源。
参考文献:http://wikis.sun.com/display/SunCluster/Oracle+ASM+With+Sun+Cluster+Support+for+Oracle+RAC