天天看点

更改oracle集群中的的公用/互联IP子网配置

可使用oifcfg 添加或删除ocr 中的网络接口信息:

$ /bin/oifcfg getif

eth0 139.2.156.0 global public

eth1 192.168.0.0 global cluster_interconnect

$ oifcfg delif -global eth0

$ oifcfg setif –global eth0/139.2.166.0:public

$ oifcfg delif –global eth1

$ oifcfg setif –global eth1/192.168.1.0:cluster_interconnect

$ oifcfg getif

eth0 139.2.166.0 global public

eth1 192.168.1.0 global cluster_interconnect

更改公用/互联ip 子网配置

在安装oracle clusterware 和rac 时,在oui 交互阶段,有可能会指定与oracle

clusterware 将使用的公用和互联接口有关的错误信息。如果发生这种情况,则在安装过

程结束时,oracle clusterware 就可以启动,但以后在与集群中的其他节点进行通信时可能

会遇到问题。如果公用网络和互联的接口、ip 子网或ip 地址不正确或需要进行更改,则

应使用oracle 接口配置工具(oifcfg) 进行更改,因为这样可以更新相应的ocr 信息。

在本幻灯片所显示的示例中,公用网络和专用网络的ip 子网都不正确:

1. 使用getif 选项可以获取当前接口信息。

2. 先使用delif 选项删除与公共接口对应的项,然后使用setif 选项输入正确的

信息。

3. 对专用互联执行相同的操作。

4. 检查新信息是否正确。

可以将网络接口存储为全局接口或节点特定的接口。如果rac 集群的所有节点都具

有连接到同一子网的同一接口(推荐),则会将接口存储为全局接口。仅当集群中的某些

节点具有不同的接口和子网集时,才会将接口存储为节点特定的接口。