Oracle RAC 修改 IP 地址

原文地址:http://blog.51cto.com/itbull/1098549

2012-12-24 21:31:01

 修改IP地址

1,关闭crs_stop -all

2,修改/etc/hosts内对应信息

3,

a,修改public ip 。

b,修改网段掩码

 

-- 查看当前配置:

[root@raw1 bin]# ./oifcfg getif -global

eth0  10.85.10.0  global  public

eth1  192.168.1.0  global  cluster_interconnect


    -- 删除当前配置

[root@raw1 bin]# ./oifcfg delif -global eth0

[root@raw1 bin]# ./oifcfg delif -global eth1

[root@raw1 bin]# ./oifcfg getif

 

-- 重新添加

[root@raw1 bin]# ./oifcfg setif -global eth0/10.85.10.0:public

[root@raw1 bin]# ./oifcfg setif -global eth1/192.168.1.0:cluster_interconnect

[root@raw1 bin]#  ./oifcfg getif

eth0  10.85.10.0  global  public

eth1  192.168.1.0  global  cluster_interconnect

 

 

[root@racnode2 bin]# ./oifcfg iflist

eth0  192.168.86.0

eth1  192.168.0.0

eth2  192.168.200.0

eth3  192.168.200.0

eth4  192.168.200.0

eth5  192.168.200.0

 

       注意: 这里IP 地址最一个为0.  代表的是一个网段。 修改的时候要切记。 否在在启动OCR 会报如下错误:

       [  CRSOCR][4054413904] OCR context init failure.  Error: PROC-44: 网络地址和网络接口操作中出错 网络地址和网络接口操作错误 [7]

 

 

 

c,修改VIP

[root@raw1 bin]# ./srvctl modify nodeapps -n raw1 -A 10.85.10.222/255.255.255.0/eth0

[root@raw1 bin]# ./srvctl modify nodeapps -n raw2 -A 10.85.10.223/255.255.255.0/eth0

 

 

 

4,检查listener.ora 和 tnsname中ip信息是否需要修改。

5,启动资源,crs_start -all

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值