You can create aliases for almost any
type of object stored in an Oracle Names server. An alias is an alternative
name for an object. It stores the name of the object it is referencing.
When a client requests a lookup of an alias, Oracle Names completes the
lookup as if it was actually the entry it is referencing. For example,
an alias of db1alias
can be created for an object named db1
.
When db1alias
is used to connect to a database service, as
in CONNECT scott/tiger@db1alias
, it will actually resolve
to and use the connect descriptor information for db1
.
There are two main uses of aliases:
Use an alias as a way for clients to refer to a network object by another name.
Use an alias in one domain for an object in another domain. This enables that database service or net service name to be defined once in Oracle Names, but used out of other domains
To create an alias:
In the navigator pane, expand Oracle Net Configuration > Oracle Names Servers.
Select the Oracle Names server.
From the list in the right pane, select Manage Data.
Select the Aliases tab.
Select Add.
Enter the alias in the Alias Name field and the actual name of the object in the Canonical Name field.
Choose Execute.
Choose File > Save Network Configuration.