In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces RAC how to change VIP and SCAN IP, the article is very detailed, has a certain reference value, interested friends must read it!
The cluster cannot change the computer name, but you can change IP, but if you change IP, you'd better not change the network segment. Changing the network segment involves the change of the network layer. The command of the network layer is oifcfg.
View VIP's information:
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
Modify the vip of node2: (from 24 to 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
Modify the / etc/hosts of the two nodes to reflect the new vip of node2.
/ 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
View SCAN IP information (node-scan is an alias for scan ip in / etc/hosts)
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
Modify SCAN VIP
/ u01/app/11.2.0/grid/bin/srvctl stop scan_listener
/ u01/app/11.2.0/grid/bin/srvctl stop scan
Modify the address of scan vip in / etc/hosts
/ 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
The above is all the contents of the article "how RAC changes VIP and SCAN IP". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.