|
Notes:
|
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.