這篇文章給大家分享的是有關(guān)ORACLE 11G RAC如何修改IP的內(nèi)容。小編覺(jué)得挺實(shí)用的,因此分享給大家做個(gè)參考,一起跟隨小編過(guò)來(lái)看看吧。
創(chuàng)新互聯(lián)堅(jiān)持“要么做到,要么別承諾”的工作理念,服務(wù)領(lǐng)域包括:成都網(wǎng)站設(shè)計(jì)、做網(wǎng)站、成都外貿(mào)網(wǎng)站建設(shè)公司、企業(yè)官網(wǎng)、英文網(wǎng)站、手機(jī)端網(wǎng)站、網(wǎng)站推廣等服務(wù),滿足客戶于互聯(lián)網(wǎng)時(shí)代的鐵西網(wǎng)站設(shè)計(jì)、移動(dòng)媒體設(shè)計(jì)的需求,幫助企業(yè)找到有效的互聯(lián)網(wǎng)解決方案。努力成為您成熟可靠的網(wǎng)絡(luò)建設(shè)合作伙伴!原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.停止節(jié)點(diǎn)1實(shí)例(grid)
srvctl stop instance -d rac -n rac1
2.停止節(jié)點(diǎn)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.啟動(dòng)(grid)
srvctl start vip -n rac1
srvctl start listener -n rac1
srvctl start instance -d rac -n rac1
三.修改Scan IP
1.停止scan服務(wù)(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.啟動(dòng)服務(wù)(grid)
srvctl start scan_listener
6.確認(rèn)是否生效(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.關(guān)閉并禁用所有節(jié)點(diǎn)的集群(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.開(kāi)啟并啟動(dòng)所有節(jié)點(diǎn)的集群(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
感謝各位的閱讀!關(guān)于“ORACLE 11G RAC如何修改IP”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,讓大家可以學(xué)到更多知識(shí),如果覺(jué)得文章不錯(cuò),可以把它分享出去讓更多的人看到吧!