Oracle 参数 SHARED_SERVERS 官方解释,作用,如何配置最优化建议
本站中文解释
SHARED_SERVERS是一个Oracle数据库参数,根据应用程序的需求决定值的大小。它可以通过设置”shared_servers”变量来调整共享服务器,也可以通过“max_shared_servers”变量进一步调整最大的共享服务器数量,即已分配的共享服务器的最大数量。
一般来说,当发起新会话请求时,如果当前已经分配的共享服务器数量少于 “shared_servers” 设置值,Oracle会自动启动新的共享服务器处理新会话请求,而且 “max_shared_servers” 参数值决定了当 shared_servers 已被达到最大值时,针对未来新会话请求,是否可以继续启动新的共享服务器处理,如果 db_work_limit 参数值也没有被达到最大值,那么会继续启动共享服务器。
建议设置 shared_servers 参数值的时候,应充分考虑负载的量、需求的情况,如果共享服务器被设置的过大,会导致 Oracle 无法充分利用多CPU资源;另外如果设置过小,也会受到系统负载量过大而无法正常响应的影响。
官方英文解释
SHARED_SERVERS
specifies the number of server processes that you want to create when an instance is started. If system load decreases, then this minimum number of servers is maintained. Therefore, you should take care not to set SHARED_SERVERS
too high at system startup.
Property | Description |
---|---|
Parameter type |
Integer |
Default value |
If you are using shared server architecture or if the |
Modifiable |
|
Modifiable in a PDB |
Yes |
Range of values |
The value of this parameter should be less than |
Basic |
Yes |
Starting with Oracle Database 12c Release 1 (12.1.0.2), the SHARED_SERVERS
parameter can be set on PDBs. However, unlike most other parameters that can be set on a PDB, this parameter can only be used within a PDB to enable or disable use of shared servers for that PDB. Therefore, in a PDB, the DBA can either set SHARED_SERVERS
to 0 to disable use of shared servers for that PDB or use ALTER SYSTEM RESET SHARED_SERVERS
to re-enable shared servers for the PDB. The configuration of shared servers for the CDB can only be done in the root.
See Also:
-
“DISPATCHERS”
-
“MAX_SHARED_SERVERS”
-
Oracle Database
Administrator’s Guide for more information on setting this parameter