Memory Management for Shared Server
Shared server requires some user global area (UGA) in either the shared pool or large pool. For installations with a small number of simultaneous sessions, the default sizes for these system global area (SGA) components are generally sufficient. However, if you expect a large number of sessions for your installation, you may have to tune memory to support shared server.
Enabling Shared Server
Shared server is enabled by setting the SHARED_SERVERS initialization parameter to a value greater than 0. The other shared server initialization parameters need not be set.
Set shared server dynamically by setting the
SHARED_SERVERSinitialization parameter to a nonzero value with theALTER SYSTEMstatement.Set the
SHARED_SERVERSinitialization parameter to a nonzero value at database startup by including it in the initialization parameter file.
Because shared server requires at least one dispatcher in order to work, a dispatcher is brought up even if no dispatcher has been configured. Dispatchers are discussed in "Configuring Dispatchers".
- About Determining a Value for SHARED_SERVERS
The SHARED_SERVERSinitialization parameter specifies the minimum number of shared servers that you want created when the instance is started. After instance startup, Oracle Database can dynamically adjust the number of shared servers based on how busy existing shared servers are and the length of the request queue. - Decreasing the Number of Shared Server Processes
You can decrease the minimum number of shared servers that must be kept active by dynamically setting theSHARED_SERVERSparameter to a lower value. Thereafter, until the number of shared servers is decreased to the value of theSHARED_SERVERSparameter, any shared servers that become inactive are marked by PMON for termination.
- Limiting the Number of Shared Server Processes
TheMAX_SHARED_SERVERSinitialization parameter specifies the maximum number of shared servers that can be automatically created by PMON. It has no default value. - Limiting the Number of Shared Server Sessions
TheSHARED_SERVER_SESSIONSinitialization parameter specifies the maximum number of concurrent shared server user sessions. - Protecting Shared Memory
TheCIRCUITSinitialization parameter sets a maximum limit on the number of virtual circuits that can be created in shared memory. This parameter has no default. If it is not specified, then the system can create circuits as needed, limited by theDISPATCHERSinitialization parameter and system resources.
Comments
Post a Comment