Network Config   «Prev  Next»

Lesson 3 Oracle listener and MTS
Objective Describe how the listener works with MTS to manage connections.

Oracle listener and Shared Server

Although Oracle MTS has been deprecated since Oracle 9i, it is important to understand the role that MTS had prior to the release of Oracle 9i Shared Server. The Oracle listener is a server process that manages incoming SQL*Net and Net8 connections. Without an MTS configuration, the listener process spawns a dedicated server process to manage each database connection. The following SlideShow illustrates how.

Dedicated Listener Process

Multiple Clients to Same Server

Unlike a dedicated connection, the shared server enables many clients to connect to the same server without the need for a dedicated server process for each client. Using the multi-threaded server enables you to minimize the memory and processing resources needed as the number of connections to the database increases. Here is what happens when the listener is started with MTS:
  1. The listener is started using the parameters in the listener.ora file.
  2. The DBA starts the Oracle database.
  3. The MTS dispatchers start up according to the MTS parameters in the init.ora file.
  4. Each dispatcher calls the listener using the protocol it is assigned, at the address defined in the MTS_LISTEN_ADDRESS in the init.ora file. There may be more than one such address if multiple listeners are used.
The listener and the multi-threaded server are now ready for incoming connections. The listener and the database are now tied together in the sense that the listener must be running when the database is started. The same listener process can be defined as either MTS (if the MTS parameters are in the databases init.ora file) or non-MTS (if they are not present).
The next lesson takes a closer look at the components of MTS.

Listener MTS - Quiz

Before moving on to the next lesson, click the Quiz link below to check your mastery of listener concepts.
Listener MTS - Quiz