0% found this document useful (0 votes)
19 views

ORACLE NETWORK CONFIGURATION

The document explains the Oracle Network Configuration, detailing the distinction between dedicated and shared server processes for connecting to an Oracle Database. It outlines how connections are established for both types of processes, emphasizing the importance of user sessions for database operations. Additionally, it provides steps for configuring shared server settings and verifying dispatcher availability.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

ORACLE NETWORK CONFIGURATION

The document explains the Oracle Network Configuration, detailing the distinction between dedicated and shared server processes for connecting to an Oracle Database. It outlines how connections are established for both types of processes, emphasizing the importance of user sessions for database operations. Additionally, it provides steps for configuring shared server settings and verifying dispatcher availability.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

ORACLE

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.

If Database is up and running, but if users are not able to access it ….

IT’S OF NO USE !!!

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.

User Process is on client side.

Server Process is always on Database server side.

When a user makes a connection to the Oracle instance, a process is created on the server.

We can configure to have dedicated server process or shared server process.

Each of these dedicated server processes consumes memory on the database server while in shared
server, users share the server connection.
ORACLE NETWORK CONFIGURATION.

What is dedicated server process?

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.

How connection is established for dedicated server process?

1) The listener receives a client connection request.


2) The listener starts a dedicated server process.
3) The listener provides the location of the dedicated server process to the client in a redirect
message.
4) The client connects directly to the dedicated server.
ORACLE NETWORK CONFIGURATION.

What is Shared server process?

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.

How connection is established for shared server process?

How shared server connection works?

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.

CONFIGURING SHARED SERVER.


1> Add entries in tnsname.ora for SERVER = SHARED , and SERVER = DEDICATED.

2> Alter parameter shared servers and max shared servers.


 Shared servers – Specifies the number of server processes that you want to create
when an instance is started.

 Max Shared servers -- Specifies the maximum number of shared server processes
allowed to be running simultaneously.

3> Check if DIPATCHER is configured properly.


Here it is configured for both services REPORT as well as MANAGER.
ORACLE NETWORK CONFIGURATION.

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.

You might also like