您好,登錄后才能下訂單哦!
這篇文章將為大家詳細(xì)講解有關(guān)oracle 11G RAC如何改IP,小編覺得挺實(shí)用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。
#host IP
10.165.240.61 pool01
10.165.240.62 pool02
10.165.240.63 pool03
#VIP
10.165.240.64 pool01-vip
10.165.240.65 pool02-vip
10.165.240.66 pool03-vip
#scan IP
10.165.240.67 pool-scan
ifconfig -a
rac1 public 192.168.4.211 bond0 --> 192.168.0.161
rac2 public 192.168.4.222 bond0 --> 192.168.0.162
rac1-vip vip 192.168.4.216 eth0 --> 192.168.0.165
rac2-vip vip 192.168.4.217 eth0 --> 192.168.0.166
rac-cluster scan 192.168.4.201 bond0 --> 192.168.0.160
eth2為私有ip,不改
禁止所有節(jié)點(diǎn)自啟動并停止數(shù)據(jù)庫,監(jiān)聽
su - grid
srvctl disable listener -n pool01
srvctl disable listener -n pool02
srvctl stop listener -n pool01
srvctl stop listener -n pool02
su - root
./srvctl disable database -d devdb
su - grid
srvctl stop database -d devdb -o immediate
禁止所有節(jié)點(diǎn)自啟動并停止vip,使用hosts文件的vip名
su - root
./srvctl disable vip -i "pool01-vip"
./srvctl disable vip -i "pool02-vip"
su - grid
srvctl stop vip -n pool01
srvctl stop vip -n pool02
禁止和停止所有節(jié)點(diǎn)scan_listener的啟動
su - grid
srvctl disable scan_listener
srvctl stop scan_listener
禁止和停止所有節(jié)點(diǎn)scan
su - root
./srvctl disable scan
su - grid
srvctl stop scan
兩邊節(jié)點(diǎn)停crs
su - root
./crsctl stop crs
修改兩邊節(jié)點(diǎn)/etc/hosts
修改兩個節(jié)點(diǎn)網(wǎng)卡配置
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/init.d/network restart
兩邊節(jié)點(diǎn)啟動crs
su - root
/u01/app/11.2.0/grid/bin/crsctl start crs
修改public ip
su - root
./oifcfg getif
./oifcfg delif -global bond0
./oifcfg setif -global bond0/10.165.240.0:public
./oifcfg getif
修改vip
查看
su - root
./srvctl config vip -n pool01
./srvctl modify nodeapps -n pool01 -A 10.165.240.64/255.255.254.0/bond0
./srvctl modify nodeapps -n pool02 -A 10.165.240.65/255.255.254.0/bond0
./srvctl config vip -n pool02
修改scan-ip
su - grid
查看
srvctl config scan
su - root
./srvctl modify scan -n 10.165.240.67
su - grid
srvctl config scan
啟動vip 監(jiān)聽 scan scan_listener 數(shù)據(jù)庫
su - root
./srvctl enable listener -n pool01
./srvctl enable listener -n pool02
./srvctl enable vip -i "pool01-vip"
./srvctl enable vip -i "pool02-vip"
./srvctl start vip -n pool01
./srvctl start vip -n pool02
./srvctl start listener -n pool01
./srvctl start listener -n pool02
./srvctl enable scan_listener
./srvctl enable scan
./srvctl start scan
./srvctl start scan_listener
./srvctl enable database -d devdb
./srvctl start database -d devdb
修改local_listener
查看系統(tǒng)參數(shù)
show parameter local
alter system set local_listener=''
===============================================
alter profile default limit PASSWORD_LOCK_TIME 1/24/60/60;
alter profile default limit FAILED_LOGIN_ATTEMPTS 30;
關(guān)于“oracle 11G RAC如何改IP”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,使各位可以學(xué)到更多知識,如果覺得文章不錯,請把它分享出去讓更多的人看到。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。