Oracle static registration and dynamic registration

Source: Internet
Author: User

One, what is registration?

Registration is the registration of the database as a service to the listener. The client does not need to know the database name and instance name, just know that the database can be used to connect to the database with the service name provided externally. This service name may or may not be the same as the instance name.

During the database server startup process, the database server registers the appropriate service with the listener (whenever a database is started, two messages are registered to the listener by default): The database server's corresponding instance and service. )

This is equivalent to: there is a listener (Listener) between the database server and the client, and in the Listener, the corresponding service name (one database may have multiple service names) is logged, and when the client needs to connect to the database, only the service name is provided. You can establish a connection between the client and the server.

Second, static registration

Static registration is the configuration that reads the Listener.ora file when the instance is started, registering the instance and service to the listener. Whenever you start a database, two messages are registered to the listener by default: the instance and service corresponding to the database server.

When statically registered, the Global_dbname in Listener.ora provides the service name, and the Sid_name in Listener.ora provides the registered instance name.

When a static registration method is adopted, the contents of the Listener.ora are as follows:

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
(SID_DESC =
(GLOBAL_DBNAME =orcl)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(SID_NAME =orcl)
)
(SID_DESC =
(GLOBAL_DBNAME =orcl1)
(ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
(SID_NAME =orcl)
)
)

This file indicates that the database is single-instance, with an instance named ORCL, providing two services outside: ORCL and ORCL1

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.