Tuesday, November 10, 2015

Rename SCAN Configuration in Oracle 11g Release 2 RAC

The original Scan name was "css-db-test-scan" and I want to rename it to "css-db-test-scan2". 

1- Configure  the new name in DNS
--------------------------------------------------------------------------------------------------------------------
2- Check current scan name:
$ nslookup css-db-test-scan
Server:         10.8.72.16
Address:        10.8.72.16#53
Name:   css-db-test-scan
Address: 10.8.72.29
Name:   css-db-test-scan
Address: 10.8.72.31
Name:   css-db-test-scan
Address: 10.8.72.30
--------------------------------------------------------------------------------------------------------------------
3- Display the current configuration using the following command as the oracle/grid user.

$export GRID_HOME

$ srvctl config scan
SCAN name: css-db-test-scan, Network: 1/10.8.72.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /css-db-test-scan/10.8.72.30
SCAN VIP name: scan2, IP: /css-db-test-scan/10.8.72.29
SCAN VIP name: scan3, IP: /css-db-test-scan/10.8.72.31

--------------------------------------------------------------------------------------------------------------------
4- Stop SCAN and SCAN listeners using the following commands as the oracle/grid user.

$ srvctl stop scan_listener

$ srvctl stop scan

--------------------------------------------------------------------------------------------------------------------
5- Modify the SCAN name using the following commands as the root user.

GRID_HOME/bin/srvctl modify scan -n css-db-test-scan2

$ GRID_HOME/bin/crsctl modify type ora.scan_vip.type -attr "ATTRIBUTE=SCAN_NAME,DEFAULT_VALUE=css-db-test-scan2"
--------------------------------------------------------------------------------------------------------------------
6- Start SCAN and SCAN listeners using the following commands as the oracle/grid user.

$ srvctl modify scan_listener -u


$ srvctl start scan_listener

--------------------------------------------------------------------------------------------------------------------
7- Check new scan name configuration

$ srvctl config scan
SCAN name: css-db-test-scan2, Network: 1/10.8.72.0/255.255.255.0/eth0
SCAN VIP name: scan1, IP: /css-db-test-scan2/10.8.72.30
SCAN VIP name: scan2, IP: /css-db-test-scan2/10.8.72.29
SCAN VIP name: scan3, IP: /css-db-test-scan2/10.8.72.31
--------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment