Oracle10g RAC Private IP修改

一客户的核心Oracle10g RAC架构的数据库要进行IP的修改,原因为目前public ip和virtual ip均是用的公网IP,因此基于安全的考虑,将这2类IP均修改为公司局域网内私网IP。

出于对客户信息的保密,因此不能将真实的IP写出来,不过我会描述清楚,若有疑问,欢迎留言指出。

 

IP类型节点1(原IP)节点1(改后IP)节点2(原IP)节点2(改后IP)
Public IP202.85.219.x192.168.0.214202.85.219.x192.168.0.215
Virtual IP202.85.219.x192.168.0.216202.85.219.x192.168.0.217
Private IP192.168.0.21410.0.1.8192.168.0.21410.0.1.9

 

本套RAC需要修改public ip,virtual ip和private ip,相比较而言,修改private ip是最简单的,因此我们先执行private ip的修改工作。

查看当前网卡信息:

[oracle@oracle3 ~]$ oifcfg getif
eth0  202.85.219.0  global  public
eth1  192.168.0.0  global  cluster_interconnect


使用oifcfg命令添加新的私网信息并删掉旧的私网信息使用oifcfg命令添加新的私网信息并删掉旧的私网信息

[oracle@oracle3 ~]$ oifcfg setif -global eth1/10.0.1.0:cluster_interconnect
[oracle@oracle3 ~]$ oifcfg delif -global eth1/192.168.0.0


查看修改后的私网信息

[oracle@oracle3 ~]$ oifcfg getif
eth0  202.85.219.0  global  public
eth1  10.0.1.0  global  cluster_interconnect  ---> 已显示为被修改的subnet


关闭Oracle Clusterware Stack

oracle3:root@/oracle/product/10.2.0/crs/bin>./crsctl stop crs
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.


修改/etc/hosts文件,网卡IP配置

本步需要更新/etc/hosts文件,网卡上所配置的IP地址。

 

启动Oracle Clusterware Stack

oracle3:root@/oracle/product/10.2.0/crs/bin>./crsctl start crs
Attempting to start CRS stack 
The CRS stack will be started shortly

 

 

至此,Oracle10g RAC Private IP地址修改完毕。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值