首页 > Linux操作系统 > Linux操作系统 > How to update SCAN VIP ( [ID 952903.1]

How to update SCAN VIP ( [ID 952903.1]

Linux操作系统 作者:羽化残虹 时间:2013-10-31 23:00:41 0 删除 编辑

In this Document


Applies to:

Oracle Database - Enterprise Edition - Version to [Release 11.2]
Information in this document applies to any platform.


The purpose of this document is to explain how to change the IP addresses associated with theSCANVIPs in a 11gR2 Grid (CRS) environment.

The IP addresses associated with the SCAN VIP resources are initially set when the SCAN resources are created.
Any changes to the DNS entry for the SCAN are not automatically propagated to the clusterware and need to be done manually.

This applies only to installations that arenotusingGNS.

The information in this note can also be helpful in cases where SCAN was originally configured with just one address and is now being expanded to accommodate three IP addresses.


  1. Before the SCAN VIPs can be changed, the entry for the SCAN name on the Domain NameServer (DNS) needs to be updated with the new IP addresses. This usually will be done by a network administrator. To check the current setting, the following command can be used:
  2. To check the current IP address(es) of the SCAN VIPs, run the following commands as the root user:
    $GRID_HOME/bin/srvctl config scan
  3. Stop the SCAN listeners and SCAN
    $GRID_HOME/bin/srvctl stop scan_listener
    $GRID_HOME/bin/srvctl stop scan
  4. Next refresh the SCAN VIPs with the new IP addresses from the DNS entry:
    $GRID_HOME/bin/srvctl modify scan -n
  5. To check if the SCAN VIPs have been changed, run the following command, it should now show the new IP addresses.
    $GRID_HOME/bin/srvctl config scan
  6. Restart SCAN & SCAN listener:
    $GRID_HOME/bin/srvctl start scan
    $GRID_HOME/bin/srvctl start scan_listener
  7. If the number of SCAN VIPs has changed, the SCAN listener needs to be updated:
    $GRID_HOME/bin/srvctl modify scan_listener -u
Below is an example using the following configuration:
  • The name of the SCAN
  • subnet of the public network is10.100.10.0
  • netmask for the public network is255.255.255.0
  • name of the public interface iseth1
  • old IP addresses:, &
  • new IP addresses:, &

Stopping & starting the SCAN VIPs/listeners can be done by the grid user, however the 'srvctl modify scan' command must be executed by root user, so it's practical to execute all steps as the root user.

A lookup of the SCAN on the DNS server shows that the entry has already been updated with the new IP addresses:

$ nslookup 


Stop the SCAN listener and the SCAN VIP resources:

# $GRID_HOME/bin/srvctl stop scan_listener
# $GRID_HOME/bin/srvctl stop scan
# $GRID_HOME/bin/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
# $GRID_HOME/bin/srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is not running
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is not running
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is not running

The SCAN VIP resources still show the old IP addresses:

# $GRID_HOME/bin/srvctl config scan
SCAN name: sales-scan, Network: 1/
SCAN VIP name: scan1, IP: /
SCAN VIP name: scan2, IP: /
SCAN VIP name: scan3, IP: /

Now tell CRS to update the SCAN VIP resources:

# $GRID_HOME/bin/srvctl modify scan -n

To verify that the change was successful, check the SCAN configuration again:

# $GRID_HOME/bin/srvctl config scan
SCAN name: sales-scan, Network: 1/
SCAN VIP name: scan1, IP: /
SCAN VIP name: scan2, IP: /
SCAN VIP name: scan3, IP: /

Start SCAN and the SCAN listener:

# $GRID_HOME/bin/srvctl start scan
# $GRID_HOME/bin/srvctl start scan_listener

Please note that if the SCAN VIPs are being changed because of a change of the subnet  of the public network additional changes may be required , e.g. the node VIPs and the network resource( more information please refer toDocument 276434.1and the 11.2documentation.

来自 “ ITPUB博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录