• Describe the Oracle Shared Server architecture• Configure the Oracle Shared Server • Identify and explain usefulness of related data dictionary views... Oracle Shared ServerUser proce
Trang 1Usage and Configuration
of the Oracle Shared Server
Trang 2• Describe the Oracle Shared Server architecture
• Configure the Oracle Shared Server
• Identify and explain usefulness of related data
dictionary views
Trang 3Server Configurations
• Dedicated server process
• Shared server process
Trang 4Dedicated Server Processes
Trang 5Oracle Shared Server
User process process User
Snnn
Instance SGA
Dispatcher
D003
Dispatcher
D001 DispatcherD002
Trang 6Benefits of Oracle Shared Server
• Reduces the number of processes against an
instance
• Increases the number of possible users
• Achieves load balancing
• Reduces the number of idle server processes
• Reduces memory usage and system overhead
Trang 7Using a Dedicated Server with Oracle Shared Server
) )
Trang 82 1
Database server
ClientConnecting
User process process User
Listener
Dispatcher process
D001
Dispatcher process
D002
3
Trang 9PMON
DBWn
Request Queue Response queue for (D002)
Response queue for (D003)
Instance SGA
User process Listener
Dispatcher
D001
User process
Trang 10Oracle Shared Server: User session data is held in the SGA SGA
User session data
Cursor state
Shared pool and other memory structures
Stack space PGA
Dedicated Server: User session data is kept in the PGA
The SGA and PGA
SGA
Shared pool and other memory structures
Stack space
User session data
Cursor state PGA
Trang 11Configuring Oracle Shared Server
• Required initialization parameters
Trang 12Specifies the number of dispatchers initially started for
a given protocol
DISPATCHERS = "(PROTOCOL=TCP)(DISPATCHERS=2)\ (PROTOCOL=IPC)(DISPATCHERS=1)"
Trang 13• Specifies the maximum number of dispatcher
processes that can run simultaneously
• Issues the ALTER SYSTEM command to add more
dispatchers than initially started
Trang 14S003 S004
S005 S006
Trang 15• Specifies the maximum number of shared servers
that can be started
• Allows shared servers to be allocated dynamically
based on the length of the request queue
MAX_SHARED_SERVERS = 10
S001 S002
S003 S004
S005 S006
S007 S008
S009 S010
Trang 16• Specifies the total number of virtual circuits that
are available for inbound and outbound network sessions
• Contributes to total SGA size
CIRCUITS = 100
Trang 17• Specifies the total number of Oracle Shared Server
user sessions to allow
• Setting this parameter enables you to reserve user
sessions for dedicated servers
SHARED_SERVER_SESSIONS = 100
Trang 19• Verify that the dispatcher has registered with the
listener when the instance was started by issuing:
• Verify that you are connected using shared servers
by making a single connection then query
V$CIRCUIT view to show one entry per shared
server connection.
Verifying Setup
$ lsnrctl services
Trang 21In this lesson, you should have learned how to:
• Identify the components of the Oracle Shared
Server
• Describe the Oracle Shared Server architecture
• Configure the Oracle Shared Server
• Identify and explain usefulness of related data
dictionary views
Trang 22Practice 5 Overview
This practice covers the following topics:
• Configuring Oracle Shared Server
• Defining LOCAL_LISTENER for instance
registration
• Using the Listener Control utility to verify services
• Verifying shared server configuration and
performance using V$ views
• Verifying instance registration