Oracle 参数 MAX_SHARED_SERVERS 官方解释,作用,如何配置最优化建议

本站中文解释

MAX_SHARED_SERVERS参数限制了当前可以使用的最大的并行服务连接数,在并行服务程序中,该参数用于控制共享服务器客户端打开的最大连接数。如果当前设置的并行服务连接数不能满足应用程序的要求,可以增大MAX_SHARED_SERVERS参数。

最佳实践:
1. 根据当前系统的使用情况,设置合理的MAX_SHARED_SERVERS参数值,该参数的默认值为2,最大值为500,最小值不能低于应用程序的最低需求;
2. 该参数除了受并行服务连接数的限制外,还受参数SHARED_SERVER_SESSIONS的限制。此参数设置为TRUE时,SHARED_SERVER_SESSIONS参数才有意义,当该参数设置为FALSE时,MAX_SHARED_SERVERS设置将无效。
3. 合理设置MAX_SHARED_SERVERS参数,可以保证服务器负载平衡,不要设置太大,以免造成系统资源浪费和性能下降。

官方英文解释

MAX_SHARED_SERVERS specifies the maximum number of shared server processes allowed to be running simultaneously. Setting this parameter enables you to reserve process slots for other processes, such as dedicated servers.
Property Description

Parameter type

Integer

Default value

There is no default value.

Modifiable

ALTER SYSTEM

Modifiable in a PDB

No

Range of values

If MAX_SHARED_SERVERS is specified, then it should be greater than or equal to SHARED_SERVERS and less than PROCESSES.

Basic

No

When you want to reduce the range of shared servers, you can reduce MAX_SHARED_SERVERS before reducing SHARED_SERVERS. If MAX_SHARED_SERVERS is lower than SHARED_SERVERS, then the number of shared servers will not vary but will remain at the constant level specified by SHARED_SERVERS. If MAX_SHARED_SERVERS is not specified, then a shared server process may be spawned as long as the number of free process slots is greater than 1 / 8 the maximum number of processes, or 2 if PROCESSES is less than 24.

See Also:

  • “SHARED_SERVERS”

  • “PROCESSES”

  • Oracle Database
    Administrator’s Guide
    for more information on setting this parameter

  • Oracle Database
    Concepts
    for information on processes

  • Your operating system-specific Oracle documentation for the default value and range of values


数据运维技术 » Oracle 参数 MAX_SHARED_SERVERS 官方解释,作用,如何配置最优化建议