Create 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 Oracle9i 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:

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:

  5. 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.

     

  6. Choose Create.