oracle 11gR2 如何修改scan vip 地址/etc/hosts方式

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:46

这次帮客户搭建了一套oracle 11gR2 rac for aix环境,scan vip因为网络调整需要,需要更改以前设置好的scanvip,是采用/etc/hosts的方式,比如将scan vip 192.168.128.100改为10.76.31.111

下面是具体步骤:

1.crs集群是打开的

2.修改两边/etc/hosts 将192.168.128.100改为100.100.31.111

3.srvctl config scan 查看当前vip设置
p570a@root#./srvctl config scan
SCAN name: 192.168.128.100, Network: 1/192.168.128.0/255.255.255.0/en0
SCAN VIP name: scan1, IP: /scan-vip/192.168.128.100

4.用root用户停止scan_listener 和sacn vip
[font=NSimsun]$GRID_HOME/bin/srvctl stop scan_listener
$GRID_HOME/bin/srvctl stop scan
$GRID_HOME/bin/srvctl status scan
[font=新宋体] [font=Courier New]SCAN VIP scan1 is enabled
SCAN VIP scan1 is not running
[font=Courier New] $GRID_HOME/bin/srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running

5.用root用户修改scan vip
[font=NSimsun]$GRID_HOME/bin/srvctl modify scan -n 100.100.31.111

6.检查是否修改成功
p570a@root#./srvctl config scan
SCAN name: 100.100.31.111 , Network: 1/100.100.31.0/255.255.255.0/en0
SCAN VIP name: scan1, IP: /scan-vip/100.100.31.111

7.启动scan和scan_listener
[font=Courier New]$GRID_HOME/bin/srvctl start scan
$GRID_HOME/bin/srvctl start scan_listener
修改成功

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】