使用VMWARE WORKSTATION分别创建2个虚拟机,也可以先创建一个模版,再进行克隆,可以参考http://blog.itpub.net/28536251/viewspace-1455365/。此处不再重复。
分别安装2个虚拟机,如果是通过模版进行的克隆,需要修改网络配置,具体可以参考http://blog.itpub.net/28536251/viewspace-1444892/。安装完成后,建议安装VMware Tools,以提高与VMware的兼容性。建议启用并添加共享文件夹,这样就不需要将oracle安装文件上传到linux系统上面去了。
为简化部署,需要对安装完成的虚拟机进行一些设置。
(1)关闭两台虚拟机的防火墙
[root@bogon ~]# /etc/init.d/iptables stop
[root@bogon ~]# chkconfig iptables off
(2)禁用两台虚拟机的selinux,修改SELINUX=enforcing为SELINUX=disabled。
[root@bogon ~]# vim /etc/selinux/config
[root@bogon ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
(3)修改主机名
修改节点1的主机名:
[root@bogon ~]# vim /etc/sysconfig/network
[root@bogon ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=rac1
修改节点2的主机名:
[root@bogon ~]# vim /etc/sysconfig/network
[root@bogon ~]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=rac2
(4)重启虚拟机后进行检查
[root@rac1 ~]# /etc/init.d/iptables status
iptables: Firewall is not running.
[root@rac1 ~]# getenforce
Disabled
[root@rac1 ~]# hostname
rac1