Usage and Configurationof the Oracle Shared Server
Trang 3Server Configurations
• Dedicated server process• Shared server process
Trang 4Dedicated Server Processes
Trang 5Oracle Shared ServerShared server
Database serverClient
D001 DispatcherD002
Trang 6Benefits of Oracle Shared Server
• Reduces the number of processes against an
Trang 7Using a Dedicated Server with Oracle Shared Server
TEST.world =
(DESCRIPTION = (ADDRESS =
(PROTOCOL = TCP) (HOST = stc-sun02) (PORT = 1521)
)
(CONNECT_DATA=(SERVICE_NAME=TEST.us.oracle.com) (SERVER=DEDICATED)
) )
Trang 8Database serverClient
3
Trang 9Processing a RequestShared server
Database serverclient
UserprocessListener
Trang 10Oracle Shared Server: User session data is held in the SGA SGA
Usersession
Cursor state
Shared pool and other
memory structures
Stackspace PGA
Dedicated Server: User session data is kept in the PGA
The SGA and PGA
SGA
Shared pool and other memory structures
User session
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)"
TCP/IP
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 14S005S006
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
S009S010
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 18Related Parameters
Other initialization parameters affected by Oracle Shared Server that may require adjustment:
• LARGE_POOL_SIZE • SESSIONS
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 20Dynamic Views
• V$CIRCUIT
• V$SHARED_SERVER• V$DISPATCHER
• V$SHARED_SERVER_MONITOR• V$QUEUE
• V$SESSION
Trang 21In this lesson, you should have learned how to:
• Identify the components of the Oracle Shared
• 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