ORACLE NETWORK CONFIGURATION
ORACLE NETWORK CONFIGURATION
NETWORK
CONFIGURATION.
ORACLE NETWORK CONFIGURATION.
A client is any application that connects to Oracle Database to send or retrieve data. An Oracle
Database client application can reside on any computer that has Oracle Database client software
installed.
So, in short it is very important for users to establish a Session with Database in order to perform
operations.
When Session is established, every User Process is allocated Server Process (SHARED/DEDICATED) to
work on user catered SQL’s.
When a user makes a connection to the Oracle instance, a process is created on the server.
Each of these dedicated server processes consumes memory on the database server while in shared
server, users share the server connection.
ORACLE NETWORK CONFIGURATION.
In dedicated Server process, each User process is allocated one dedicated server process.
If we are making a dedicated server connection, the listener process will create a dedicated server
for us.The new dedicated server process inherits the connection established by the listener, and we
are now physically connected to the database.
In shared server, Oracle uses a pool of shared processes for a large community of users.
Shared servers are simply a connection pooling mechanism.
However, the listener will behave differently if we are making a shared server connection request.
This listener process knows the dispatcher(s) we have running in the instance. As connection
requests are received, the listener will choose a dispatcher process from the pool of available
dispatchers. The listener will hand off the connection to the dispatcher process.
As shown in above Figure, the client connection will send a request to the dispatcher.
1) The dispatcher will first place this request onto the request queue in the SGA.
2) The first available shared server will dequeue this request and process it.
3) When the shared server completes, the response is placed into the response queue,
subsequently picked up by the dispatcher.
4) Connection transmitted back to the client.
ORACLE NETWORK CONFIGURATION.
Max Shared servers -- Specifies the maximum number of shared server processes
allowed to be running simultaneously.
4> Check on LSNRCTL prompt whether DISPATCHERS for configured services are available.
Here, we can see DISPATCHERS are available for MANAGER and REPORT services.
5> Connect Database using connection string which is created for SHARED server.
You can check in V$SESSION view to verify whether session has DEDICATED or SHARED
server for any session.