Linux下搭建Oracle11g RAC(1)----IP分配与配置IP
2014-10-27 15:32
459 查看
首先需要说明的,我的RAC搭建不是在虚拟机上完成的,而是在实际部署中,二者之间有些许差异,本人水平有限,请见谅。
其中,每台机器至少需要配置3个IP地址,在安装操作系统的过程中,我们需要配置公网IP和私有IP即可,虚拟IP在安装集群件时分配。
Public IP、Virtual IP、SCAN IP必须配置在同一网段。
private IP与他们不能在同一网段内。
SCAN IP是Oracle 11g新推出的,在配置11g RAC时需要指定。
IP分配之后,配置/etc/hosts文件
事例: 修改节点1的/etc/hosts配置文件
其中,每台机器至少需要配置3个IP地址,在安装操作系统的过程中,我们需要配置公网IP和私有IP即可,虚拟IP在安装集群件时分配。
Public IP、Virtual IP、SCAN IP必须配置在同一网段。
private IP与他们不能在同一网段内。
SCAN IP是Oracle 11g新推出的,在配置11g RAC时需要指定。
Hostname | Short Hostname | Type | IP Address | Interface |
node1.localdomain | node1 | Public IP | 172.16.0.191 | eth0 |
node1-vip.localdomain | node1-vip | Virtual IP | 172.16.0.193 | eth0:1 |
node1-priv.localdomain | node1-priv | Private IP | 192.168.94.11 | eth1 |
node2.localdomain | node2 | Public IP | 172.16.0.192 | eth0 |
node2-priv.localdomain | node2-vip | Virtual IP | 172.16.0.194 | eth0:1 |
node2-priv.localdomain | node2-priv | Private IP | 192.168.94.12 | eth1 |
scan-cluster.localdomain | scan-cluster | SCAN IP | 172.16.0.203 | eth0 |
事例: 修改节点1的/etc/hosts配置文件
[root@node1 ~]# cp /etc/hosts /etc/hosts.bak [root@node1 ~]# cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost ::1 localhost6.localdomain6 localhost6 # node1 172.16.0.191 node1.localdomain node1 172.16.0.193 node1-vip.localdomain node1-vip 192.168.94.11 node1-priv.localdomain node1-priv # node2 172.16.0.192 node2.localdomain node2 172.16.0.194 node2-vip.localdomain node2-vip 192.168.94.12 node2-priv.localdomain node2-priv # scan-ip 172.16.0.203 scan-cluster.localdomain scan-cluster |
相关文章推荐
- Linux下搭建Oracle11g RAC(2)----配置DNS服务器,确认SCAN IP可以被解析
- Linux下搭建Oracle11g RAC(5)----配置ASM磁盘
- Linux下搭建Oracle11g RAC(4)----配置oracle,grid用户SSH对等性
- Linux下搭建Oracle11g RAC(3)----创建用户及配置相关文件
- Linux-DNS配置 安装oracle11g rac
- linux下Oracle11g RAC搭建(六)
- Linux下搭建Oracle11g RAC(8)----创建ASM磁盘组
- linux下Oracle11g RAC搭建(二)
- 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:2.搭建环境-2.7. 配置资源与参数
- 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:4.安装Oracle RAC FAQ-4.7.Oracle 11G R2 RAC修改public网络IP
- 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:2.搭建环境-2.9. 配置用户等效性(可选项)
- linux下Oracle11g RAC搭建(七)
- linux下Oracle11g RAC搭建(四)
- 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:2.搭建环境-2.5. 配置网络
- linux下Oracle11g RAC搭建(八)
- 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:2.搭建环境-2.3配置共享磁盘
- linux下Oracle11g RAC搭建(五)
- linux下Oracle11g RAC搭建(十)
- linux下Oracle11g RAC搭建(七)
- Linux下搭建Oracle11g RAC(6)----安装Grid Infrastructure