Get the App
SLTechnology News&Howtos  ›  Database  › 

How to change VIP and SCAN IP with RAC

Shulou Source: shulou.com Published: 2022-05-31 14:52:29 10月26日 Update

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!

Tags: Information content article network segment network two value interest alias command address guy partner more best knowledge node industry computer information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Information macOS Microsoft MariaDB