下载地址:
Oracle VM VirtualBox 4.3.8 或 https://www.virtualbox.org/wiki/Downloads
Oracle Linux 5.8 或 http://edelivery.oracle.com/linux
Oracle ASMLib 2.0.4
Oracle Grid Infrastructure (Clusterware)
Oracle Database 11g R2
RAC安装步骤:
- 安装Oracle VirtualBox,在vbox上创建VM;
- 在node1上安装Oracle Linux;
- 关闭node1,克隆Linux到node2并配置网卡;
- 安装共享磁盘,fdisk创建分区;
http://www.cnblogs.com/david-zhang-index/archive/2012/07/12/2587826.html - udev创建raw device (optional);
- 安装ASMLib (在OL5.8/Server/目录), oracleasm创建ASM磁盘;
- 创建oracle用户和组,修改内核参数(optional, 可以在安装Clusterware时fixup);
- SSH建立用户等效性: 配置密钥对和测试主机互通 (optional, 可以在安装Clusterware时自动建立);
- 在node1上安装并配置DNS (optional, 用于解决PRVF-5636 : The DNS response time for an unreachable node exceeded "15000" ms)
- 安装cvuqdisk (在grid/rpm/目录)和libaio-devel (在OL5.8/Server/目录),运行runcluvfy.sh进行集群安装前检查 ;
http://docs.oracle.com/cd/E11882_01/install.112/e10812/prelinux.htm#CWLIN237 - 配置Oracle集群文件系统(OCFS2) (optional);
- 安装Clusterware (vipca);
- asmca创建diskgroup;
- 安装Database;
- dbca创建DB;
- 在其它VM上安装Grid Control (optional);
- 在node1和node2上安装GC agent (optional);
曾经遇到的问题:
1) Package cvuqdisk not installed
2) PRVG-11110 : The specified database file location "/dev/sdf" did not have read and write access to user "oracle" on node "rac1"
3) Clock synchronization check using Network Time Protocol(NTP) failed - 参照Oracle官方文档
4) Package existence check failed for "libaio-devel(x86_64)"
5) PRVF-5636 : The DNS response time for an unreachable node exceeded "15000" ms on following nodes: rac1 -配置DNS可没有解决, 参照安装cluster时报错 PRVF-5636在resolv.conf设置了options才通过。
options rotate
options timeout:2
options attempts:5
6) Unable to determine the sharedness of /dev/sdb on nodes: rac1, rac2 (可忽略)
参考:
- 使用 VMware Server 在 Oracle Enterprise Linux 上 安装 Oracle RAC 10g (配置内核参数, ASM磁盘和OCFS2)
- Oracle 10g RAC在Vbox虚拟机上的安装、升级、应 用关键补丁学习总结文档 (Vbox使用,Linux安装)
- 使用 VMware Server2 在 Oracle Enterprise Linux 上安装 Oracle11gR2 RAC (Grid和DB安装)
- Oracle® Grid Infrastructure Installation Guide 11g Release 2 (11.2) for Linux (官方文档)
- Oracle 11g Release 1 RAC On Linux Using VMware Server 2
- Oracle Enterprise Linux 6.4安装Oracle Database 12c RAC图文详细教程 (DNS配置)
- Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
- Oracle Grid control 11g及Active DataGuard 11g安装部署
- 在 Oracle Enterprise Linux 和 iSCSI 上构建您自己的 Oracle RAC 11g 集群 11g
- 在 Oracle Enterprise Linux 和 iSCSI 上构建您自己的 Oracle RAC 集群 10g
- Virtualbox上安装Oracle 11g RAC