SCAN chicken ribs in Oracle11.2

Source: Internet
Author: User
As Oracle said, the main purpose of SCAN is to facilitate access to the RAC client database connection configuration. When RAC increases or decreases nodes, the client does not have to modify the connection configuration.

As Oracle said, the main purpose of SCAN is to facilitate access to the RAC client database connection configuration. When RAC increases or decreases nodes, the client does not have to modify the connection configuration.

The SCAN function in Oracle 11.2 is a weakness in my opinion.

As Oracle said, the main purpose of SCAN is to facilitate access to the RAC client database connection configuration. When RAC increases or decreases nodes, the client does not have to modify the connection configuration because it uses SCAN to access RAC.

Oracle has pushed two methods to configure SCN: DNS and Grid Naming Solutions (GNS)

These two methods are closely integrated with the network management system. For multi-layer application systems, this configuration extends the fault point to the network layer. When the DNS server fails to be resolved, RAC cannot be accessed.

SCAN is only a new channel for the client to access the database. Previously, the VIP access mechanism was still available. Therefore, we completely bypass this mechanism.

During configuration installation, a SCAN is forged to ensure installation is successful. In future use, we will continue to use VIP to access the RAC database. In this way, SCAN can be bypassed.

The following uses the linux environment as an example to demonstrate the following forgery methods:

Add an entry in/etc/hosts to configure the IP address and name of SCAN. Then, modify it in the/usr/bin/nslookup file and back up it as nslookup. original. Modify the file content:

/Usr/bin @ serv1 => servdb1 $ more nslookup

#! /Bin/bash

HOSTNAME =$ {1}

If [[$ HOSTNAME = "serv-scan"]; then

Echo "Server: 24.154.1.34"

Echo "Address: 24.154.1.34 #53"

Echo "Non-authoritative answer :"

Echo "Name: serv-scan"

Echo "Address: 192.168.15.193"

Else

/Usr/bin/nslookup. original $ HOSTNAME

Fi

In fact, you can leave the nslookup file unchanged, so that the system reports an error in the RAC installation verification step. If you ignore the error, you can continue the installation.

If the SCAN function is not used, pay attention to the following parameter. This must be modified. Otherwise, the database cannot be started successfully.

This parameter is remote_listener. Oracle 11g automatically sets this parameter to SCAN-NAME: PORTER. Therefore, you need to change it to an entry alias in the tnsnames. ora file, such as LISTENERS_SERVDB.

The content in the tnsnames. ora file is:

LISTENERS_SERVDB =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = serv1-vip) (PORT = 1561 ))
(ADDRESS = (PROTOCOL = TCP) (HOST = serv2-vip) (PORT = 1561 ))
)

Of course, the use of SCAN varies according to the environment. For super-large application systems or a very large number of clients accessing the database, this configuration reduces the workload of client modification operations.

For more information about Oracle, see the Oracle topic page? Tid = 12

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.