Oracle dynamic registration and static registration listener

Source: Internet
Author: User

The difference between Oracle dynamic registration and static registration: Dynamic monitoring does not require any information about the data to be recorded in the Listener.ora file, only the configuration information of the listener is written to the file. For example:

LISTENER =
(Description_list =
(DESCRIPTION =
(address= (PROTOCOL = IPC) (Key=extpro1))
(address= (PROTOCOL = TCP) (HOST = 192.168.2.29) (PORT = 1521))
)
)

The client's Tnsnames.ora configuration information needs to be added to each service_name, and nothing else needs to be changed, such as

YUCESHI1 =
(DESCRIPTION =
(Address_list =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.29) (PORT = 1521))
)
(Connect_data =
(service_name = test1)
)
)
YUCESHI2 =
(DESCRIPTION =
(Address_list =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.29) (PORT = 1521))
)
(Connect_data =
(service_name = test2)
)
)
YUCESH3 =
(DESCRIPTION =
(Address_list =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.29) (PORT = 1521))
)
(Connect_data =
(service_name = test3)
)
)


Dynamic monitoring steps:

The server-side configuration is as follows:

    1. Set Service_names:

alter system set SERVICE_NAMES=TEST1,TEST2,TEST3;

2. Write the Listener.ora file:

LISTENER =
(Description_list =
(DESCRIPTION =
(address= (PROTOCOL = IPC) (Key=extpro1))
(address= (PROTOCOL = TCP) (HOST = 192.168.2.29) (PORT = 1521))
)
)

3. Restart the Oracle instance for the Service_names to take effect. (only if Oracle is in open state)

Conn/as Sysdba;

Shutdown immediate;

Startup

Client Configuration:

1. Edit the Tnsnames.ora and take effect immediately after saving.

YUCESHI1 =
(DESCRIPTION =
(Address_list =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.29) (PORT = 1521))
)
(Connect_data =
(service_name = test1)
)
)
YUCESHI2 =
(DESCRIPTION =
(Address_list =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.29) (PORT = 1521))
)
(Connect_data =
(service_name = test2)
)
)
YUCESH3 =
(DESCRIPTION =
(Address_list =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.2.29) (PORT = 1521))
)
(Connect_data =
(service_name = test3)
)
)


The above dynamic registration configuration is complete. The above changes to the static registration step.

Only need to modify Listener.ora on the server side






This article is from the "Common Documents" blog, so be sure to keep this source http://yujianglei.blog.51cto.com/7215578/1568699

Oracle dynamic registration and static registration listener

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.