Which procedure will do this properly if run as the root user?

You installed the Oracle Grid Infrastructure on a four-node cluster before discussing the network
requirements with the network administrator who was on holiday.
You created a single scan named mydb-scan.myclust.example.com by adding this name to the
/etc/hosts file. As a result, the Grid Infrastructure has four node listeners and node VIP but only a
single SCAN listener and SCAN VIP.
The network administrator has returned and modified the corporate DNS server to associate three
IP addresses with the mydb-scan.myclust.example.com scan name. The SCAN VIPs are on the
same network as the node VIPs.
You now must replace the single SCAN VIP and listener with three of each for high availability
purposes and make certain that the SCANs and listeners are active. Which procedure will do this
properly if run as the root user?

You installed the Oracle Grid Infrastructure on a four-node cluster before discussing the network
requirements with the network administrator who was on holiday.
You created a single scan named mydb-scan.myclust.example.com by adding this name to the
/etc/hosts file. As a result, the Grid Infrastructure has four node listeners and node VIP but only a
single SCAN listener and SCAN VIP.
The network administrator has returned and modified the corporate DNS server to associate three
IP addresses with the mydb-scan.myclust.example.com scan name. The SCAN VIPs are on the
same network as the node VIPs.
You now must replace the single SCAN VIP and listener with three of each for high availability
purposes and make certain that the SCANs and listeners are active. Which procedure will do this
properly if run as the root user?

A.
srvctl stop scan_listener
srvctl stop scan
srvctl start scan
srvctl start scan_listener

B.
srvctl stop scan_listener
srvctl stop scan
srvctl remove scan
srvctl add scan -n MYDB-SCAN.MYCLUST.EXAMPLE.COM
srvctl start scan
srvctl start scan_listener

C.
srvctl add scan -n MYDB-SCAN.MYCLUST.EXAMPLE.COM
srvctl start scan
srvctl start scan_listener

D.
srvctl stop scan_listener
srvctl stop scan
srvctl remove scan
srvctl add scan
srvctl start scan
srvctl start scan listener

Explanation:
How to update the IP address of the SCAN VIP resources (ora.scan.vip) [ID 952903.1]
Modified 03-JAN-2012 Type HOWTO Status PUBLISHED
In this Document
Goal
Solution
Applies to:
Oracle Server – Enterprise Edition – Version.2.0.1 to 11.2.0.1 – Release.2 to 11.2

Information in this document applies to any platform.
Goal
The purpose of this document is to explain how to change the IP addresses associated with the
SCAN VIPs 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 are not using GNS.
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.
Solution
Before the SCAN VIPs can be changed, the entry for the SCAN name on the Domain Name
Server (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:
nslookup <scan_name>
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
Next refresh the SCAN VIPs with the new IP addresses from the DNS entry:
$GRID_HOME/bin/srvctl modify scan -n <scan_name>
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
Below is an example using the following configuration:
The name of the SCAN is sales-scan.example.com
subnet of the public network is 10.100.10.0
netmask for the public network is 255.255.255.0
name of the public interface is eth1
old IP addresses.100.10.81, 10.100.10.82 & 10.100.10.83
new IP addresses.100.10.121, 10.100.10.122 & 10.100.10.123
A lookup of the SCAN on the DNS server shows that the entry has already been updated with the
new IP addresses:
$ nslookup sales-scan.example.com
Server: dns1.example.com
Address.100.10.70#53

Name: sales-scan.example.com
Address.100.10.123
Name: sales-scan.example.com
Address.100.10.122
Name: sales-scan.example.com
Address.100.10.121
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/10.100.10.0/255.255.255.0/eth1
SCAN VIP name: scan1, IP: /sales-scan.example.com/10.100.10.81
SCAN VIP name: scan2, IP: /sales-scan.example.com/10.100.10.82
SCAN VIP name: scan3, IP: /sales-scan.example.com/10.100.10.83
Now tell CRS to update the SCAN VIP resources:
# $GRID_HOME/bin/srvctl modify scan -n sales-scan.example.com
To verify that the change was successful, check the SCAN configuration again:
# $GRID_HOME/bin/srvctl config scan
SCAN name: sales-scan, Network/10.100.10.0/255.255.255.0/eth1
SCAN VIP name: scan1, IP: /sales-scan.example.com/10.100.10.121
SCAN VIP name: scan2, IP: /sales-scan.example.com/10.100.10.122
SCAN VIP name: scan3, IP: /sales-scan.example.com/10.100.10.123

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
(ora.net1.network). For more information please refer to Document 276434.1 and the 11.2
documentation.
My Oracle Support



Leave a Reply 2

Your email address will not be published. Required fields are marked *


djeday84

djeday84

[grid@oel6-1 ~]$ srvctl stop scan_listener
[grid@oel6-1 ~]$ srvctl stop scan
[root@oel6-1 ~]# srvctl modify scan -n rac11-scan.djeday.lan
[root@oel6-1 ~]# crsctl modify type ora.scan_vip.type -attr “ATTRIBUTE=SCAN_NAME,DEFAULT_VALUE=rac11-scan.djeday.lan”
16:31:14 (2)sys@orcl> alter system set remote_listener=’rac11-scan:1521′;
[root@oel6-1 ~]# srvctl start scan
[root@oel6-1 ~]# srvctl modify scan_listener -u
[root@oel6-1 ~]# srvctl start scan_listener

L. Zhu

L. Zhu

A is wrong. No updated scan info
B is right.
C is wrong. you have remove existing scan
D is wrong. no updated scan info

So B is correct