In this practice you will configure the listener
using Oracle Net Manager and then view the results in the listener.ora file.
Assumptions
UNIX
setup:
NT
setup:
·
If this is a single user machine (your personal desktop or
laptop), you can go to %ORACLE_HOME%\network\admin and rename all files from
.ora to .old to preserve them. Later when you have finished the practices, you
can remove your newly created network files and rename the .old back to .ora to
reset your environment.
Instructions
1. Create
a listener called listener01 (or any name not currently being used) by using
Oracle Net Manager. The listener must be configured for the server that
contains your Oracle database. The listener must be configured for the TCP/IP
protocol only and must listen for incoming connections on an unused port (ask
your system administrator, or if on a single user machine try 8001. If another process is using it, increment by
1 and try again).
Note:
If Oracle9i Net software is loaded on the local PC and the database is on a
different server, the listener configuration file (listener.ora) will be
created on the client PC using Oracle Net Manager and, in later steps,
transferred via FTP or similar file transfer application on the server.
|
2. View
the contents of the listener.ora
file to verify the configuration details.
·
$ cd
$TNS_ADMIN ·
$ view listener.ora (you can use more or pg also or notepad in
Windows) |
This completes this
practice.
ã Oracle Corporation, 2002
In this practice you will use the listener
control utility lsnrctl to start the listener, and set and show some of its
attributes.
Assumptions
·
If your database and listener are on a UNIX
server, you must have permissions to execute the lsnrctl utility. If you do not
have permissions see your system administrator.
Instructions
1. If
you have created the listener.ora file on your computer, then use FTP (ASCII
mode) to transfer it to your $TNS_ADMIN directory on the UNIX server. When the listener.ora file is properly placed,
start your listener by issuing lsnrctl start
listener01 from your prompt. If you encounter difficulties, use the lsnrctl command output and
the listener log file to troubleshoot.
Lsnrctl start listener01 (substitute
your listener name here) |
2. To
see a list of commands available in the listener control utility, go into
lsnrctl and type help. This will show you the commands available to you in the
listener control utility.
$ lsnrctl LSNRCTL> help |
3. While
still in the listener control utility, issue the command status
listener01 (substitute your listener name). This will tell you information about your
listener including for which database services it is listening.
LSNRCTL> status listener01 (substitute
your listener name here) |
This completes this
practice.
ã Oracle Corporation, 2002