The listener.ora file is actually very easy to configure. All the listener needs to know is the name of the host, the database name,
the location of the Oracle software (ORACLE_HOME) and the port number on which to listen.
- and jerry.
Remember that while you may have dozens of Oracle databases on a host, you need only one listener.ora file on each host.
While the default location for the listener.ora file is in $ORACLE_HOME/network/admin, problems can arise if you are running two
on different versions of Oracle.
Since two versions of Oracle means that there may be two ORACLE_HOME directories, it is important to ensure that there is only one listener.ora file on the host, and that you can find the file quickly. Hence, most experienced Oracle DBAs move the listener.ora file to a central location (/etc, or /var/opt/oracle) and replace the listener.ora file with a "soft link" pointing to the new listener.ora file location. Following are the UNIX commands to do this:
- The TRACE_LEVEL_LISTENER = OFF specifies that Oracle will not produce a trace file for each incoming connection and that this parameter should only be used for troubleshooting.
- If you expect the listener to handle large volumes of connection requests, you may also specify an Oracle "queue" for the listener process. This will enable the listener to dynamically handle larger numbers of concurrent connection requests.
To add a queue, simply enter the QUEUESIZE keyword at the end of any listening address in your listener configuration file. The following example shows a listener.ora file with the queue size specified.
The next lesson describes how the listener operates.