ITPub博客

首页 > 数据库 > Oracle > Oracle RAC网络配置信息操作

Oracle RAC网络配置信息操作

原创 Oracle 作者:lovehewenyu 时间:2012-05-28 15:17:04 0 删除 编辑

 

RAC 网络配置信息操作

 

首先感谢笔者。谢谢老师!

http://space.itpub.net/519536/viewspace-678398 ( secooler )

http://space.itpub.net/12020513/viewspace-630224 ( Blessed )

 

如果 Oracle RAC 数据库 的 公用 网络和 私有互联 网络的 IP 子网或 IP 地址不正确时,可以使用 Oracle 提供的 接口配置 工具 oifcfg 进行 调整 。这样的修改方法可以达到更新 OCR 信息的目的。

 

1 、使用 oifcfg 的 getif 选项可以获取当前网络的配置信息

 [ora@rac2-22 ~]$ oifcfg getif

eth0   192.168.0.0   global   public

eth0   192.168.1.0   global   cluster_interconnect

eth1   192.168.1.0   global   cluster_interconnect

 

很显然我们的这里的信息是不正确的。我们 cluster_interconnect 心跳线 IP 为一个网卡,这里给出了 2 个 网卡。显然信息不准。

 

2 、使用 oifcfg 的 delif 选项可以删除与公共网络对应的信息

[ora@rac2-22 ~]$ oifcfg delif -global eth0

 

3 、使用 oifcfg 的 setif 选项可以添加与公共网络对应的信息

[ora@rac2-22 ~]$ oifcfg setif -global eth0/192.168.0.0:public

 

4 、使用 oifcfg 的 getif 选项查看当前网络的配置信息,现已经正确

[ora@rac2-22 ~]$ oifcfg getif

eth0   192.168.0.0   global   public                 ( VIP 与管理 IP 段)

eth1   192.168.1.0   global   cluster_interconnect        (心跳 IP 段)

 

在看看另一个节点是否同步网络配置信息

[ora@rac1-21 ~]$ oifcfg getif

eth0   192.168.0.0   global   public

eth1   192.168.1.0   global   cluster_interconnect

 

OK 一切 OK 看 oifcfg 命令已经更新了 OCR 的网络配置信息!

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26442936/viewspace-731283/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
10年金融行业老鸟。Oracle,Mysql,PostgreSQL,EMC 存储,NBU备份。微信/电话 18211103995

注册时间:2012-02-03

  • 博文量
    307
  • 访问量
    1528463