How to Change IP adresses of SCAN Name in Oracle 11gR2 RAC
Today, I needed to update the IP adresses of scan name in Oracle 11gR2 RAC environment. As you know, these IP addresses are defined in DNS but they also stored in Oracle Clusterware resource configuration to tell which IP addresses will be served by SCAN VIP services. So when you update the IP addresses of the scan name in DNS, you also need to update the resource configuration. This is a very simple task: Stop the SCAN listeners, stop the SCAN (Virtual IP) services and then run “srvctl modify scan” command for the scan name:
1 2 |
[root@testrac1 ]# srvctl stop scan_listener [root@testrac1 ]# srvctl stop scan |
Be sure that all the SCAN VIP services are down:
1 2 3 4 5 6 7 |
[root@testrac1 ]# srvctl status scan SCAN VIP scan1 is enabled SCAN VIP scan1 is not running SCAN VIP scan2 is enabled SCAN VIP scan2 is not running SCAN VIP scan3 is enabled SCAN VIP scan3 is not running |
Re-configure scan virtual ip adresses and run the scan listeners:
1 2 3 |
[root@testrac1 ]# srvctl modify scan -n testrac-scan.gokhanatil.com [root@testrac1 ]# srvctl start scan [root@testrac1 ]# srvctl start scan_listener |
You can check the new configuration by running “srvctl config scan”.