您好,登录后才能下订单哦!
这篇文章给大家分享的是有关ORACLE 11G RAC如何修改IP的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。
原IP:
#Public IP
192.168.42.201 rac1
192.168.42.202 rac2
#Private IP
20.20.20.201 rac1-priv
20.20.20.202 rac2-priv
#Virtual IP
192.168.42.203 rac1-vip
192.168.42.204 rac2-vip
#Scan IP
192.168.42.205 rac-scan
修改后IP:
#Public IP
192.168.43.101 rac1
192.168.43.102 rac2
#Private IP
10.10.10.101 rac1-priv
10.10.10.102 rac2-priv
#Virtual IP
192.168.43.103 rac1-vip
192.168.43.104 rac2-vip
#Scan IP
192.168.43.105 rac-scan
一.修改Public IP
1.查看集群IP信息(grid)
oifcfg getif
2.删除原public IP(grid)
oifcfg delif -global eth0/192.168.42.0
3.添加新public IP(grid)
oifcfg setif -global eth0/192.168.43.0:public
4.查看集群IP信息(grid)
oifcfg getif
5.修改hosts文件(root)
vi /etc/hosts
#Public IP
192.168.43.101 rac1
192.168.43.102 rac2
二.修改Virtual IP
1.停止节点1实例(grid)
srvctl stop instance -d rac -n rac1
2.停止节点1VIP(grid)
srvctl stop vip -n rac1 -f
3.查看vip配置(grid)
srvctl config nodeapps -a
4.修改hosts文件(root)
vi /etc/hosts
#Virtual IP
192.168.43.103 rac1-vip
192.168.43.104 rac2-vip
5.修改vip配置(root)
/u01/app/11.2.0.4/grid/bin/srvctl modify nodeapps -n rac1 -A 192.168.43.103/255.255.255.0/eth0
6.启动(grid)
srvctl start vip -n rac1
srvctl start listener -n rac1
srvctl start instance -d rac -n rac1
三.修改Scan IP
1.停止scan服务(grid)
srvctl stop scan_listener
srvctl stop scan
2.修改hosts文件(root)
vi /etc/hosts
#Scan IP
192.168.43.105 rac-scan
3.修改scan配置(root)
srvctl modify scan -n scanip
4.修改scan listener配置(grid)
srvctl modify scan_listener -u
5.启动服务(grid)
srvctl start scan_listener
6.确认是否生效(grid)
srvctl config scan
四.修改Private IP
1.备份 profile.xml
cd $ORACLE_HOME/gpnp/rac1/profiles/peer/
cp profile.xml profile.xml.bak
2.查看集群IP信息(grid)
oifcfg getif
3.加入新的private ip(grid)
oifcfg setif -global eth2/10.10.10.0:cluster_interconnect
4.查看集群IP信息(grid)
oifcfg getif
5.关闭并禁用所有节点的集群(root)
/u01/app/11.2.0.4/grid/bin/crsctl stop crs
/u01/app/11.2.0.4/grid/bin/crsctl disable crs
6.修改hosts文件(root)
vi /etc/hosts
#Private IP
10.10.10.101 rac1-priv
10.10.10.102 rac2-priv
7.开启并启动所有节点的集群(root)
/u01/app/11.2.0.4/grid/bin/crsctl enable crs
/u01/app/11.2.0.4/grid/bin/crsctl start crs
8.删除原private ip(grid)
oifcfg delif -global eth2/20.20.20.0
9.查看集群IP信息(grid)
oifcfg getif
感谢各位的阅读!关于“ORACLE 11G RAC如何修改IP”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。