Configuration of listener. ora and tnsnames. ora when the server contains multiple Libraries

Source: Internet
Author: User
1. Configuration content: 1). listener. ora

Sid_list_listener =
(Sid_list =
(Sid_desc =
(Sid_name = plsextproc)
(ORACLE_HOME = D:/Oracle/product/10.1.0/db_1)
(Program = EXTPROC)
)
(Sid_desc =
(Sid_name = orcl)
(ORACLE_HOME = D:/Oracle/product/10.1.0/db_1)
(Global_dbname = orcl)
)
(Sid_desc =
(Sid_name = Practice)
(ORACLE_HOME = D:/Oracle/product/10.1.0/db_1)
(Global_dbname = Practice)
)
(Sid_desc =
(Sid_name = rcat)
(ORACLE_HOME = D:/Oracle/product/10.1.0/db_1)
(Global_dbname = rcat)
)
)

Listener =
(Description_list =
(Description =
(Address_list =
(Address = (Protocol = TCP) (host = doone. PAN) (Port = 1521 ))
)
)
)

2). tnsnames. ora

Orcl =
(Description =
(Address = (Protocol = TCP) (host = doone) (Port = 1521 ))
(CONNECT_DATA =
(Server = dedicated)
(SERVICE_NAME = orcl)
)
)
Rcat =
(Description =
(Address = (Protocol = TCP) (host = doone) (Port = 1521 ))
(CONNECT_DATA =
(Server = dedicated)
(SERVICE_NAME = rcat)
)
)
Practice =
(Description =
(Address = (Protocol = TCP) (host = doone) (Port = 1521 ))
(CONNECT_DATA =
(Server = dedicated)
(SERVICE_NAME = Practice)
)
)
Extproc_connection_data =
(Description =
(Address_list =
(Address = (Protocol = IPC) (Key = EXTPROC ))
)
(CONNECT_DATA =
(SID = plsextproc)
(Presentation = Ro)
)
)

2. Note 1). Conn user/pwd @ orcl, Conn user/pwd @ ract, Conn user/pwd @ practice can be used for connection.

 

2). problems may occur if the above two files are not configured for multiple databases.

A. Conn user/pwd if this connection is directly used, the connection is connected to the last database created by default.

B. ORA-01041: Internal error. hostdef extension doesn't exist.

This is generally because TNS does not configure the corresponding database description. As a result, the database is shut down and the restart fails.

C. ORA-12170: TNS: connect timeout occurred

This error occurs. Generally, the listener. ora library is not configured.

D. ORA-12514: TNS: Listener does not currently know of Service requested in connect
Descriptor

This error occurs. Generally, the listener. ora library is not configured.

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.