This tutorial introduces you to the Listener Control utility which enables you to administer the listener.
Time to Complete
Approximately 30 minutes
Oracle Net Listener is a process that runs on the database server computer. It receives incoming client connection requests and manages the request traffic. Listener configuration information is stored in the listener.ora file and includes one or more listening protocol addresses, information about supported services, and parameters that control its run-time behavior. The listener is configured during the creation of the database. You can use the Listener Control Utility to administer the listener after it is configured.
The following is a list of software requirements:
- Oracle Database 12c
Before starting this tutorial, you should have installed Oracle Database 12c and created a database.
Viewing the Listener Configuration
Use the Listener Control utility STATUS command to display basic status information about a listener, including a summary of listener configuration settings, listening protocol addresses, and a summary of services registered with the listener. To execute the STATUS command, perform the following steps:
Open a terminal window and execute the oraenv command to set the environment variables.
Execute the lsnrctl status command.
Starting the Listener
The Oracle listener is set to start automatically whenever the host is restarted. If a problem occurs in your system or you have manually stopped the listener, you can restart it by using the lsnrctl start command. To restart the listener, perform the following steps:
For the purposes of this tutorial, stop the listener by executing the lsnrctl stop command.
Now that the listener is stopped, log in to SQL*Plus as the SYSTEM user using the orcl service name to determine whether you can still connect to the database.
Also try to log in to Enterprise Manager Database Express as the SYSTEM user. (If your login page is not already open, the login page might not display when the listener goes down.)
Restart the listener by using the lsnrctl start command.
Check the listener status by executing the lsnrctl status command.
Once again log in to SQL*Plus as the SYSTEM user to verify you can now connect to the database.
Log in to Enterprise Manager Database Express as the SYSTEM user to verify you can access the database.
The Database Home page is displayed. Log out of Enterprise Manager Database Express.
In this tutorial, you learned to:
- View the status of the listener
- Start the listener
- Oracle Database 2 Day DBA 12c Release 2 (126.96.36.199)
- Oracle Database Net Services Administrator's Guide 12c Release 1 (12.1)
- Oracle Database Net Services Reference 12c Release 1 (12.1)
- Lead Curriculum Developer: Veerabhadra Rao Putrevu
- Original Curriculum Developers: Donna Keesling, Salome Clement
- Other Contributors: Bert Rich
To navigate this Oracle by Example tutorial, note the following:
- Topic List:
- Click a topic to navigate to that section.
- Expand All Topics:
- Click the button to show or hide the details for the sections. By default, all topics are collapsed.
- Hide All Images:
- Click the button to show or hide the screenshots. By default, all images are displayed.
- Click the button to print the content. The content that is currently displayed or hidden is printed.
To navigate to a particular section in this tutorial, select the topic from the list.