Understanding Oracle Net Architecture
Understanding Oracle Net Architecture
The listener brokers client requests, handing off the requests to the Oracle
database server. Every time a client requests a network session with a
database, the listener receives the initial request.
Figure 5-1 illustrates the various layers on the client and database during an
initial connection. As shown in the diagram, the listener is at the top layer
of the server-side network stack.
Figure 5-2 shows two database instances registering information with two
listeners. The figure does not represent all the information that can be
registered. For example, listening endpoints, such as the port numbers, can
be dynamically registered with the listener.
If the listener is not running when an instance starts, then the LREG process
cannot register the service information. LREG attempts to connect to the
listener periodically, but it may take up to 60 seconds before LREG registers
with the listener after it has been started. To initiate service registration
immediately after the listener is started, use the SQL statement ALTER
SYSTEM REGISTER. This statement is especially useful in high
availability configurations.
(DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=sales-
server)(PORT=1521)))
The preceding example shows a TCP/IP address that specifies the host of
the listener (sales-server) and a port number (1521).
Figure 5-3 illustrates the role of the listener during the establishment of a
connection. The figure shows a browser making an HTTP connection and a
client making a database connection.
• Use the SRVCTL utility to start and stop the listener. Do not use the
listener control utility LSNRCTL.
• Each listener must have a unique name.
See Also:
• "Managing a Listener in an Oracle Restart Configuration"
• Oracle Database Administrator's Guide to learn how to configure
Oracle Restart
The ORA-12528 error occurs when a database instance is not yet registered
with the listener.
See Also:
• Oracle Database Error Messages for information about these error
messages
• Oracle Database SQL Reference for information about the ALTER
Note:
Dedicated server architectures do not support HTTP, FTP, or WebDAV
clients. Only database clients are supported.
• listener
• CMGW (Oracle Connection Manager Gateway)
• CMADMIN (Oracle Connection Manager Administration)
The listener receives client connections and evaluates against a set of rules
whether to deny or allow access. If it allows access, then the listener
forwards a request to a gateway process, selecting the one with the fewest
connections. The CMGW process, in turn, forwards the request to another
Oracle Connection Manager or directly to the database server, relaying data
until the connection terminates. If a connection to the server already exists,
then the gateway multiplexes, or funnels, its connections through the
existing connection. CMADMIN monitors the state of the gateway
processes and the listener, shutting down or starting up processes as
needed. In addition, it registers the location and load of the gateway
processes with the listener, and it answers requests from the Oracle
Connection Manager Control utility.