In environments where the client often requests names from a specific domain, it is appropriate to set a default domain on the client. When a default domain is set, it is automatically appended to any unqualified net service name given in the connect string, then compared to net service names stored in a tnsnames.ora file or Oracle Names server. For example, if the tnsnames.ora contains a net service names of sales.us.acme.com, the user can enter the following connect string:
CONNECT scott/tiger@sales
sales gets searched as sales.us.acme.com. If the connect string includes the domain extension, for example,
CONNECT scott/tiger@sales.us.acme.com
the domain is not appended. If a net service name in a tnsnames.ora file or Oracle Names server is not domain qualified and the default domain is set, the net service name must be entered with a dot ("."). For example, if the domain is set to us.acme.com and the client tnsnames.ora contains a net service name of sales, the user must enter the following connect string:
CONNECT scott/tiger@sales.
![]() | Note: During installation, the Net8 Configuration Assistant sets the default domain
to your computer's domain.
|
To specify a default domain: