温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

RAC如何改VIP和SCAN IP

发布时间:2021-11-10 14:08:23 来源:亿速云 阅读:215 作者:小新 栏目:关系型数据库

这篇文章主要介绍RAC如何改VIP和SCAN IP,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

集群改不了计算机名,但是可以改IP,但是改IP的话最好不要改网段,改网段涉及到网络层的更改,网络层的命令为oifcfg


查看VIP的信息:
srvctl config vip -n node1
srvctl config vip -n node2
srvctl config nodeapps -a
[root@node1 ~]# srvctl config vip -n node1
VIP exists: /node1-vip/192.168.92.22/192.168.92.0/255.255.255.0/eth0, hosting node node1
[root@node1 ~]# srvctl config vip -n node2
VIP exists: /node2-vip/192.168.92.24/192.168.92.0/255.255.255.0/eth0, hosting node node2
[root@node1 ~]# srvctl config nodeapps -a
Network exists: 1/192.168.92.0/255.255.255.0/eth0, type static
VIP exists: /node1-vip/192.168.92.22/192.168.92.0/255.255.255.0/eth0, hosting node node1
VIP exists: /node2-vip/192.168.92.24/192.168.92.0/255.255.255.0/eth0, hosting node node2

修改node2的vip:(由24改为26)
/u01/app/11.2.0/grid/bin/srvctl stop listener -n node2
/u01/app/11.2.0/grid/bin/srvctl stop vip -n node2
修改两个节点的/etc/hosts,把node2的新的vip体现出来。
/u01/app/11.2.0/grid/bin/srvctl modify nodeapps -n node2 -A 192.168.92.26/255.255.255.0/eth0
/u01/app/11.2.0/grid/bin/srvctl start vip -n node2
/u01/app/11.2.0/grid/bin/srvctl start listener -n node2



查看SCAN IP的信息(node-scan是/etc/hosts中scan ip的别名)
srvctl config scan
srvctl status scan
[root@node1 ~]# srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node node1
[root@node1 ~]# srvctl config scan
SCAN name: node-scan, Network: 1/192.168.92.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /node-scan/192.168.92.30

修改SCAN VIP
/u01/app/11.2.0/grid/bin/srvctl stop scan_listener
/u01/app/11.2.0/grid/bin/srvctl stop scan
修改/etc/hosts里的scan vip的地址
/u01/app/11.2.0/grid/bin/srvctl modify scan -n node-scan
/u01/app/11.2.0/grid/bin/srvctl start scan
/u01/app/11.2.0/grid/bin/srvctl config scan
/u01/app/11.2.0/grid/bin/srvctl modify scan_listener -u
/u01/app/11.2.0/grid/bin/srvctl start scan_listener

以上是“RAC如何改VIP和SCAN IP”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注亿速云行业资讯频道!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI