Oracle RAC 19c: Change SCAN adresses

This tutorial explains how to change the SCAN (Single Client Access Name) IP addresses in an Oracle RAC 19c cluster.

Applies to:

  • Oracle Grid Infrastructure 19c
  • Oracle RAC 19c
  • Linux platforms
  • Static SCAN IP configuration (DNS or GNS)

The SCAN consists of:

  • SCAN Name (for example: rac19c-scan.wadhahdaouehi.tn)
  • SCAN VIPs (usually 3 recommended addresses)
  • SCAN Listeners

Example:

ComponentOld ValueNew Value
SCAN Namerac19c-scanrac19c-scan
SCAN VIP 1192.168.10.51192.168.20.51
SCAN VIP 2192.168.10.52192.168.20.52
SCAN VIP 3192.168.10.53192.168.20.53

Check Cluster Status:

[root@rac19c-node01 ~]# srvctl config scan
SCAN name: rac19-scan, Network: 1
Subnet IPv4: 192.168.10.0/255.255.255.0/pubnet, static
Subnet IPv6:
SCAN 1 IPv4 VIP: 192.168.10.51
SCAN VIP is enabled.
SCAN 2 IPv4 VIP: 192.168.10.52
SCAN VIP is enabled.
SCAN 3 IPv4 VIP: 192.168.10.53
SCAN VIP is enabled.

Update DNS or in hosts file

In my example, i am using the hosts configuration file, so you shoul update this configuration with new IP adresses

192.168.20.51           rac19-scan
192.168.20.52 rac19-scan
192.168.20.53 rac19-scan

Update the SCAN configuration:

[root@rac19c-node01 ~]# srvctl modify scan -scanname rac19-scan

Now, lets check again:

[root@rac19c-node01 ~]# srvctl config scan
SCAN name: rac19-scan, Network: 1
Subnet IPv4: 192.168.20.0/255.255.255.0/pubnet, static
Subnet IPv6:
SCAN 1 IPv4 VIP: 192.168.20.51
SCAN VIP is enabled.
SCAN 2 IPv4 VIP: 192.168.20.52
SCAN VIP is enabled.
SCAN 3 IPv4 VIP: 192.168.20.53
SCAN VIP is enabled.
[root@rac19c-node01 ~]#

Next step:

Re update the parameter remote_listener:

SQL> ALTER SYSTEM SET remote_listener='rac19-scan:1521' SCOPE=BOTH sid='*';

Last step: Delete the old configiration:

[root@rac19c-node01 ~]# oifcfg delif -global pubnet/192.168.10.0
[root@rac19c-node01 ~]# oifcfg setif -global pubnet/192.168.20.0:public
Bookmark the permalink.
Loading Facebook Comments ...

Leave a Reply