这篇文章将为大家详细讲解有关oracle 11G RAC如何改IP,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
#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,不改
禁止所有节点自启动并停止数据库,监听
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
禁止所有节点自启动并停止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
禁止和停止所有节点scan_listener的启动
su - grid
srvctl disable scan_listener
srvctl stop scan_listener
禁止和停止所有节点scan
su - root
./srvctl disable scan
su - grid
srvctl stop scan
两边节点停crs
su - root
./crsctl stop crs
修改两边节点/etc/hosts
修改两个节点网卡配置
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/init.d/network restart
两边节点启动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 监听 scan scan_listener 数据库
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
查看系统参数
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;
关于“oracle 11G RAC如何改IP”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。