简体   繁体   English

oracle数据库中的并发会话

[英]concurrent session in oracle database

I want to have an application linked to oracle database the users will request data through the app and the app will access the database and retrieve the info. 我想有一个链接到oracle数据库的应用程序,用户将通过该应用程序请求数据,该应用程序将访问数据库并检索信息。 my question is how many concurrent session the system will support? 我的问题是系统将支持多少个并发会话?

1 to 2^16 sessions depend on setting in V$RESOURCE_LIMIT where RESOURCE_NAME = 'SESSIONS' . 1至2 ^ 16个会话取决于V$RESOURCE_LIMIT中的设置,其中RESOURCE_NAME = 'SESSIONS' Default setting is depend on number of cpu cores and process limits. 默认设置取决于cpu内核数和进程限制。

There is also limitation by OS tcp stack. 操作系统tcp堆栈也有限制。 Each tcp connection eating minimum 4096B + 4096B r/w buffer and some data for internal structure. 每个tcp连接占用最少4096B + 4096B r / w缓冲区和一些用于内部结构的数据。 So 1000 connections also mean you need minimum 8MB RAM. 因此,1000个连接也意味着您至少需要8MB RAM。

Oracle also reserve some memory for each session. Oracle还为每个会话保留一些内存。 It's called PGA. 称为PGA。 When you expect thousands sessions you should do some magic tuning :). 当您期望成千上万次会话时,应该进行一些魔术调整:)。

Another limitation is Oracle licence. 另一个限制是Oracle许可证。 Have a look to V$LICENSE . 看看V$LICENSE

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM