Oracle RAC Add Scan ip____oracle

Source: Internet
Author: User
Tags db2 ip number

Due to field application needs, the newly configured Oracle RAC environment needs to be added with 2 Scanip addresses, 10.138.129.106 and 10.138.129.107.

Pre-configuration scenario:

[grid@db1 ~]$ srvctl config scan----View configuration information for scan
SCAN Name:scan-ip, Network:1/10.138.129.0/255.255.255.0/eth2
SCAN VIP name:scan1, IP:/scan-ip/10.138.129.105

[GRID@DB1 ~]$ srvctl Status Scan----View the status of the scan and the node where the scan IP is
SCAN VIP scan1 is enabled
SCAN VIP Scan1 is running on node DB1

[grid@db1 ~]$ srvctl config scan_listener----View Scan listener
SCAN Listener Listener_scan1 exists. port:tcp:1521

By default, the RAC is configured with only 1 scan ip,1 scan listener.

Enter the theme and start adding scan IP

1. Modify the/etc/hosts information of all the RAC nodes

[GRID@DB1 ~]$ cat/etc/hosts
127.0.0.1 localhost


10.138.129.101 DB1
10.138.129.102 DB2

10.138.129.103 DB1-VIP
10.138.129.104 DB2-VIP

10.138.129.105 Scan-ip
10.138.129.106 Scan-ip---------New Scanip
10.138.129.107 Scan-ip---------New Scanip

192.168.20.1 Db1-priv
192.168.20.2 Db2-priv

2, stop scan monitoring, pay attention to listen to monitor before stopping scan

[GRID@DB1 ~]$ Srvctl Stop Scan_listener

[GRID@DB1 ~]$ srvctl Stop scan

[GRID@DB1 ~] $srvctl status Scan_listener
SCAN Listener listener_scan1 is enabled
SCAN Listener Listener_scan1 is not running

3, configuration Scan, note that the need to use the root authority to execute

[Root@db1 bin]# pwd
/u01/app/11.2.0/grid/bin
[ROOT@DB1 bin]#./srvctl Modify Scan-n Scan-ip-----Modify the scan information,-n followed by the San IP network name in the hosts

[ROOT@DB1 bin]#./srvctl Modify scan_listener-u------To add the monitoring of the Scanip, if the command is not executed, there will be only one listener_scan1 listening, after execution will be based on scan IP number automatically increases listener_scan2,listener_scan3.

4, Start scan

[GRID@DB1 ~]$ srvctl Start scan
[GRID@DB1 ~]$ srvctl start Scan_listener

[GRID@DB1 ~]$ srvctl status Scan
SCAN VIP scan1 is enabled
SCAN VIP Scan1 is running on node DB1
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node DB2
SCAN VIP SCAN3 is enabled
SCAN VIP Scan3 is running on node DB1

[grid@db1 ~]$ srvctl config scan
SCAN Name:scan-ip, Network:1/10.138.129.0/255.255.255.0/eth2
SCAN VIP name:scan1, IP:/scan-ip/10.138.129.105
SCAN VIP name:scan2, IP:/scan-ip/10.138.129.106
SCAN VIP name:scan3, IP:/scan-ip/10.138.129.107

[GRID@DB1 ~]$ srvctl status Scan_listener
SCAN Listener listener_scan1 is enabled
SCAN Listener Listener_scan1 is running on node DB1
SCAN Listener listener_scan2 is enabled
SCAN Listener listener_scan2 is running on node DB2
SCAN Listener LISTENER_SCAN3 is enabled
SCAN Listener Listener_scan3 is running on node DB1

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.