Fork me on GitHub

Create a Net Service Alias

Creating a Net Service Alias

Notes:

  • Only users that are members of either the OracleNetAdmins or the OracleContextAdmins group can create net service alias entries in a directory.

  • Net service aliases are not supported using Microsoft Active Directory.

  • You can export existing alias objects from an Oracle Names server. See Chapter 10, "Exporting Naming Data to a Directory Server," of the Oracle10i Net Services Administrator's Guide for further information.

You can create net service aliases for directory naming objects-- net service names or database services--in a directory server. A net service alias stores the name of the object it is referencing.

When a client requests a directory lookup of a net service alias, the directory determines that the entry is a net service alias and completes the lookup as if it is the referenced entry. For example, a net service alias of salesalias can be created for a net service name of sales. When salesalias is used to connect to a database service, as in CONNECT scott/tiger@salesalias, it will actually resolve to and use the connect descriptor information for sales.

There are two main uses for net service name aliases:

  • Use a net service name alias as a way for clients to refer to a database service or net service name by another name.

  • Use a net service name alias in one Oracle Context for a database service or net service name in a different Oracle Context. This enables that database service or net service name to be defined once in the directory server, but used out of other Oracle Contexts.

To create a net service name alias:

  1. In the navigator pane, expand Oracle Net Configuration > Directory > Service Naming > Aliases.

  2. Choose plus (+) from the toolbar, or choose Edit > Create from the menu bar. The Create Net Service Alias dialog box appears.

  3. In the Net Service Alias field, enter a name for the net service alias.

  4. In the Net Service or Database Service box, enter the following information about the net service name or database service:
    • Oracle Context: Specify the Oracle Context of the database service or net service name by selecting one from the list or entering one in the field.
    • Name: Specify the distinguished name (DN) of the database service or net service name by selecting one from the list or entering one in the field.
  5. Choose Create.

Related Topics

Database Identification by Service Name

Oracle Net Services Overview

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