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:
- 
      
In the navigator pane, expand Oracle Net Configuration > Directory > Service Naming > Aliases.
 - 
      
Choose plus (+) from the toolbar, or choose Edit > Create from the menu bar. The Create Net Service Alias dialog box appears.
 - 
      
In the Net Service Alias field, enter a name for the net service alias.
 - 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.
 
 - Choose Create.
 
Related Topics
Database Identification by Service Name
Copyright © 1996, 2009, Oracle and/or its affiliates. All rights reserved.
 Oracle is a registered trademark of Oracle Corporation and/or its affiliates. 
Other names may be trademarks of their respective owners.
