||Oracle Tips by Burleson
Oracle 10g Configuring Easy Connect Naming to Use an
It is not realistic to expect clients to use
long connect, so Oracle has provided a means to use a simple connect
string alias similar to that used in the host naming method in
Oracle9i. With this method, a more traditional connect string is
used, similar to:
To use the alias capability in Oracle Database
Configure the Listener with the Database
Establish the Host Name Resolution
Connect to the Database
Let’s take a more detailed look at these steps.
Step 1: Configure the Listener with the
Database Service Information - To use the alias capability, you must
register database service information with the Listener. When the
database can find the Listener, information about the database
service is dynamically registered during service registration,
including the specified database service name.
The requirements for the Listener to be found
A default Listener named LISTENER running
on TCP/IP, port 1521; or
The local_listener parameter is set in the
initialization file to the name of the actual local Listener, if
different from the default.
If the database cannot find the Listener, then
you must configure the listener.ora file with the global_dbname
parameter, as shown below:
Step 2: Establish Host Name Resolution
Environment - To use an alias, the system must resolve the service
name through an IP address translation mechanism, such as the Domain
Name System (DNS), NIS, or a centrally-maintained TCP/IP host file,
/etc/hosts (on most UNIX platforms).
For a service name of test.us.rampant.com for a
database that exists on a computer named test-server, the entry in a
typical /etc/hosts file would be:
of server host name alias
184.108.40.206 test-server test.us.rampant.com
Get the complete story:
To get the code instantly, click here:
Need an Oracle Mentor?
BEI is now offering personal mentors for Oracle DBAs where you can have an
Oracle expert right at your fingertips, anytime day or night. We work with
hundreds of Oracle databases every year, so we know exactly how to quickly
assist you with any Oracle question.
Why risk an unplanned outage? You can now get telephone access to Don
Burleson or any of his Oracle Certified DBAs with more than 20 years of
full-time IT experience. Click here for details: