Sunteți pe pagina 1din 4

One Can Succeed at Almost Anything For Which He Has Enthusiasm...: How to con...

Page 1 sur 4

More Next Blog» Create Blog Sign In

All the Views expressed here are my own and do not reflect opinions or views of the anyone else.All the views are tested on my testing
environment and kindly test the post before applying anything on production.You can reach to me at neeraj.vishen@gmail.com .

MONDAY, SEPTEMBER 12, 2011 SEARCH THIS BLOG


Search
How to configure Shared Server?
A shared server process allows a single server process to service several clients, based on the premise TRANSLATE MY PAGE
that usually in an OLTP environment, a user is more often than not, reading and editing data on the
Select Language 
screen than actually executing a DML. What this means is that, there will be chunks of time when the
Powered by Translate
dedicated server process, dedicated to a particular c lient will be sitting idle. It is this idleness that is
exploited by the shared server process in servicing several clients together.
ABOUT ME
NEERAJ VISHEN
Shared server is enabled by setting the SHARED_SERVERS initialization parameter to a value greater
Gurgoan, Ncr/Delhi, India
than 0. The other shared server initialization parameters need not be set. Because shared server requires
at least one dispatcher in order to work, a dispatcher is brought up even if no dispatcher has been I have started this blog to share my
knowledge and experience with other
configured. The SHARED_SERVERS initialization parameter specifies the minimum number of shared
Oracle DBA enthusiasts.I have experience on
servers that we want created when the instance is started. After instance startup, Oracle Database can
database architecture ,design and administrating
dynamically adjust the number of shared servers based on how busy existing shared servers are and the ranging from 9i,10g,11g on various platforms.My main
length of the request queue. interests are high availability and disaster recovery
solutions for mission critical 24×7 systems.
In typical systems, the number of shared servers stabilizes at a ratio of one shared server for every ten View my complete profile
connections . For OLTP applications, when the rate of requests is low, or when the ratio of server usage
to request is low, the connections-to-servers ratio could be higher . If we know the average load on our
system, then we can set SHARED_SERVERS to an optimal value. The Below example shows how we FOLLOW BY EMAIL
can use this parameter .
Email address... Submit
For Example
Assume a database is being used by a telemarketing center staffed by 1000 agents. On average, each
agent spends 90% of the time talking to customers and only 10% of the time looking up and updating
SUBSCRIBE TO
records. To keep the shared servers from being terminated as agents talk to customers and then
spawned again as agents access the database, a DBA specifies that the optimal number of shared Posts
servers is 100 . However, not all work shifts are staffed at the same level. On the night shift, only 200
Comments
agents are needed. Since SHARED_SERVERS is a dynamic parameter, a DBA reduces the number of
shared servers to 20 at night, thus allowing resources to be freed up for other tasks such as batch
jobs .
FOLLOWERS
Followers (156) Next
Setting the Initial Number of Dispatchers
We can specify multiple dispatcher configurations by setting DISPATCHERS to a comma separated list of
strings, or by specifying multiple DISPATCHERS parameters in the initialization file. If we specify
DISPATCHERS multiple times, the lines must be adjacent to each other in the initialization parameter
file. Internally, Oracle Database assigns an INDEX value (beginning with zero) to each DISPATCHERS
parameter. We can later refer to that DISPATCHERS parameter in an ALTER SYSTEM statement by its
index number. Some examples of setting the DISPATCHERS initialization parameter follow.
DISPATCHERS="(PROTOCOL=TCP)(DISPATCHERS=2)"
DISPATCHERS="(ADDRESS=(PROTOCOL=TCP)(HOST=144.25.16.201))(DISPATCHERS=2)" Follow
To force the dispatchers to use a specific port as the listening endpoint, add the PORT attribute as
follows:
VISITORS
DISPATCHERS="(ADDRESS=(PROTOCOL=TCP)(PORT=5000))"
DISPATCHERS="(ADDRESS=(PROTOCOL=TCP)(PORT=5001))"

Determining the Number of Dispatchers :


Once we know the number of possible connections for each process for the operating system, calculate
the initial number of dispatchers to create during instance startup, for each network protocol, using the
following formula:
Number of dispatchers = CEIL ( max. concurrent sessions / connections for each dispatcher )
CEIL returns the result roundest up to the next whole integer.

For example, assume a system that can support 970 connections for each process, and that has :
A maximum of 4000 sessions concurrently connected through TCP/IP and A maximum of 2,500
sessions concurrently connected through TCP/IP with SSL then DISPATCHERS attribute for TCP/IP
should be set to a minimum of five dispatchers (4000 / 970), and for TCP/IP with SSL three dispatchers
(2500 / 970) :
DISPATCHERS='(PROT=tcp)(DISP=5)', '(PROT-tcps)(DISP=3)'
Depending on performance, we may need to adjust the number of dispatchers.

Steps to configure shared server : To configure shared server we have to enable the following
parameter . All the below parameters are dynamic . Below is Demo to configur e the shared server. Visit Oracle Community

1.) alter system set shared_servers= 25; BLOG ARCHIVE


2.) alter system set max_shared_servers= 50; ► 2013 (6)
3.) alter system set dispatcherS= '(PROT=tcp)(DISP=30)'; ► 2012 (29)

http://neeraj-dba.blogspot.com/2011/09/how-to-configure-shared-server.html 23/11/2017
One Can Succeed at Almost Anything For Which He Has Enthusiasm...: How to con... Page 2 sur 4

4.) Add (SERVER = SHARED) in tnsnames.ora file. ▼ 2011 (206)


the tnsnames.ora file look like ► December (15)
► November (13)
NOIDA =
► October (19)
(DESCRIPTION =
(ADDRESS_LIST = ▼ September (25)
(ADDRESS = (PROTOCOL = TCP)(HOST = XXXX)(PORT = 1521)) External OS User Authentication in Oracle
) Oracle Session Information From
(CONNECT_DATA = SYS_CONTEXT
(SERVER = SHARED) Identify IP Addresses and Host Names
(SERVICE_NAME = noida)
Grant privileges on all tables in particular
)
schem...
Why and How to Drop Undo Tablespace ?
To check the status of server fire the below query :
Differences Between Dedicated Servers, Shared
Serv...
SQL> select distinct server,username from v$session ;
SERVER USERNAME All About Temporary Tablespace Part IV
------------- ----------------- All About Temporary Tablespace Part III
DEDICATED SYS
All About Temporary Tablespace Part II
DEDICATED
All About Temporary Tablespace Part I
Drop all object of Schemas
Once, i found that after configuring the shared server the above query shows the server status as 'NONE' . ORA-01555: Snapshot Too Old
What does it mean if SERVER = 'NONE' in v$session?
How to configure Shared Server?
How To Check Which Oracle Features are
Enabled ?
On googling , i found that , in Shared Server configuration when we see value 'NONE' , it means there
is no task being processed by shared server for that session. The server column will infact show status IMP-00010 not a valid export file header failed
ve...
of 'SHARED' if there is some task being processed at that particular time by the shared server process
for that session. Hence to check the status , fire some big query and then check the server status . Block Developers Tools on Production Database
Determine OS block size for Linux and Windows
When To Use Database Resident Connection
Disabling Shared Server : Pooling
We can disable shared server by setting SHARED_SERVERS to 0. we can do this dynamically with the
Suspending and Resuming a Database
'alter system' statement. When we disable shared server, no new clients can connect in shared mode.
However, Oracle Database retains some shared servers until all shared server connections are closed. V$ Views over the years
The number of shared servers retained is either the number specified by the preceding setting of Flashback Data Archive (FBDA) In Oracle 11g
shared_servers or the value of the max_ shared_servers parameter , whichever is smaller. If both Difference Between Upgradation and Migration
shared_servers and max_ shared_servers are set to 0, then all shared servers will terminate and requests in Or...
from remaining shared server clients will be queued until the value of shared_servers or max_ Invisible Indexes in Oracle 11g
shared_servers is raised again . To terminate dispatchers once all shared server clients disconnect, enter this
Virtual Column in Oracle 11g
statement:
Database Resident Connection Pooling in Oracle
11g...
SQL> alter system set dispatchers='' ;
► August (14)
► July (10)
Enjoy :-)
► June (15)
► May (20)
► April (56)
Posted by NEERAJ VISHEN at Monday, September 12, 2011
► March (19)

1 comment:
3kus0 said...
MY BLOG LIST

Thanks. Your article was very useful and detailed. Real Life Database / SQL Experiences : An
Oracle Blog from Vivek Sharma
April 16, 2013 at 6:41 PM
Index – Ordering of Columns

Post a Comment Hemant's Oracle DBA Blog


Creating a PDB in a desired location in 12.2
Links to this post The Oracle Instructor
Create a Link #Accenture #Enkitec Group at #DOAG2017

Oracle Database Experts


Oracle Linux is the differentiator in the industry

Newer Post Home Older Post Kamran Agayev's Oracle Blog


Using deprecated ASM parameter might prevent
your Cluster to start
Subscribe to: Post Comments (Atom)
Gavin Sorma
Oracle GoldenGate 12c Release 3 New Feature
Parallel Replicat

Oracle database internals by Riyaj


Oracle Open World 2017 presentation

Charles Hooper's Oracle Notes


Presentation – Working with Oracle Database in
VB.Net with ODP.Net and Visual API Toolkit;
Enhancing Visual Manufacturing 9.0.0

AristaDBA's Oracle Blog....


Test Post

Alberto Dell'Era's Oracle blog


“ASH math” of time_waited explained with
pictures and simulation

oracle-developer.net
Mystats utility

Oracle Distilled
By: alfred

http://neeraj-dba.blogspot.com/2011/09/how-to-configure-shared-server.html 23/11/2017
One Can Succeed at Almost Anything For Which He Has Enthusiasm...: How to con... Page 3 sur 4

The Tom Kyte Blog


Upcoming Events...

Oracle help at your desk....:-)


AIX topas explained.

el-caro
12C ADG Enhancements

Miladin Modrakovic's Blog: Oraclue


GoldenGate error OGG-01755 SQL error: OCI
Error 26,723 = ORA-26723

Radoslav Rusinov's Oracle Blog


Luca Canali and ASM Metadata Internals

Jonathan Lewis blog's

Pythian: Plan, Deploy and Manage Your


Enterprise Database Infrastructure

Presentations

oaktable

Oracle Database Online Documentation


11g Release 2 (11.2)

POPULAR POSTS

How to Register Listener in the Database ?


The listener is a separate process that runs on the
database server computer. It receives incoming client
connection requests and manages ...

Table_exists_action Parameter of Data Pump


Sometimes it happens that we need to import table
into an existing table.If we import the table in that
schemas it throws error regarding th...

ORA-01034 & ORA-27101: Shared Memory Realm


Does Not Exist
ORA-27101 and ORA-01034 combined may occurs in
various scenarios .One of the reason for this error is
that the database is not up . Whe...

ORA-01000: Maximum Open Cursors Exceeded


Once our client report that they are facing error “ORA-
01000: maximum open cursors exceeded” while
running a application . As it seems...

How to Drop/Rename Standby Redolog file in Oracle


11g
While performing the dataguard Broker, we need to
drop the standby database while switchover the
standby . As it seems an easy task but it i...

How to resize redolog file in oracle


Once , i receive the e-mail regarding the resize of the
redo log file . The Sender want the easiest way to size
the redo log file something...

Tracking Oracle database growth


Keeping track of database space growth in production
environments is a must-to-do job of every DBA.
Maintaining and reporting informati...

Flashback_Scn and flashback_Time parameter of


Data Pump
Flashback_Scn and flashback_Time are two
important feature of the datapump 11g . If we want
to run a large export whilst...

How to Reduce DB File Sequential Read Wait


DB File Sequential Read wait event occurs when we
are trying to access data using index and oracle is
waiting for the read of index bloc...

ORA-39082 ".... created with compilation warnings"


while Importing
ORA-39082 generally occur during the import .
The error message states that the object in the
SQL statement following this ...

There was an error in this gadget

TOTAL PAGEVIEWS

1,495,947

All IS WELL. Picture Window theme. Powered by Blogger.

http://neeraj-dba.blogspot.com/2011/09/how-to-configure-shared-server.html 23/11/2017
One Can Succeed at Almost Anything For Which He Has Enthusiasm...: How to con... Page 4 sur 4

http://neeraj-dba.blogspot.com/2011/09/how-to-configure-shared-server.html 23/11/2017

S-ar putea să vă placă și