Fork me on GitHub

Local Naming Overview

Local Naming Overview

Local naming is one of the primary naming methods used to resolve a simple name, a net service name, to a connect descriptor that the client uses to connect to a database or service. Local naming stores net service names and their connect descriptors in a local tnsnames.ora file.

An end user enters a connect string that includes the net service name in the following format:

CONNECT username/password@net_service_name

In the following example sales is the net service name that is looked up in the tnsnames.ora file:

CONNECT scott/tiger@sales

The connect descriptor returned to the client includes the:

  • Protocol address location of the listener

  • Service name of the database

The client uses this information to connect to a listener. The listener, configured with the same address information, receives the request. If the listener is listening for requests to the same database service as specified in the client's connect descriptor, a connection is granted.

For more information, see Chapter 2, Connectivity Concepts, in the Oracle10i Net Administrator's Guide.

Related Topics

Oracle Net Services Overview

-------------本文结束感谢您的阅读-------------
坚持原创技术分享,您的支持将鼓励我继续创作!