当前位置:网站首页>The relationship between the number of Oracle processes and the number of sessions
The relationship between the number of Oracle processes and the number of sessions
2022-07-30 02:51:00 【chencheng】
Want to know the relationship between the number of oracle sessions and the number of processes, and why oracle chooses this relationship?What's the mos documentation for?
Accepted answer 1:
https://blog.51cto.com/lhrbest/3156119

Hope this helps you.
If you are satisfied with the answer, please click the accept button!
Other Answer 1:
https://blog.51cto.com/lhrbest/3156119

Hope this helps you.
If you are satisfied with the answer, please click the accept button!
Other Answer 2:
There is no specific relationship between processes, sessions, and connections. It can be one-to-one or one-to-many. You can refer to askTom:
A connection is a physical circuit between you and the database. A connection might be one of many types – most popular begin DEDICATED server and SHARED server. Zero, one or more sessions may be established over a given connection to the database asshow above with sqlplus. A process will be used by a session to execute statements. Sometimes there is a one to one relationship between CONNECTION->SESSION->PROCESS (eg: a normal dedicated server connection). There is a one to manyfrom connection to sessions (eg: like autotrace, one connection, two sessions, one process). A process does not have to be dedicated to a specific connection or session however, for example when using shared server (MTS), your SESSION will graba process from a pool of processes in order to execute a statement. When the call is over, that process is released back to the pool of processes.
https://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:5671284058977
Other Answer 3:
You can refer to this article.
Other Answer 4:
Dear teachers, here I understand that a process can have multiple sessions. What I want to know is the relationship between the number of processes and the number of sessions.I have heard two statements, one is that the number of oracle sessions = the number of processes * 1.1+5, and there is another statement that the number of sessions = the number of processes * 1.5. But neither of these two statements specifies the official documentation or other information.I would like to know the correctness of these two statements, and whether there are relevant official documents or information.
Other Answer 5:
You are talking about this database parameter setting
sessions=1.1 * processes + 5
The difference between session and process in Oracle:
A process can have 0, 1 or more sessions, a session can also exist in several processes, parallel is also a session corresponding to a process, the main session is a coordinator session, each parallel process also corresponds to a databasein a separate session.This can be verified from v$px_session and v$session.
The relationship between connections, session sessions and process pocesses
Each sql login is called a connection, and each connection can generate one or more sessions. If the database runs in a dedicated server mode,
A session corresponds to a server process (process). If the database runs in a shared server mode, a server process can serve multiple sessions.
Other Answer 6:
The number of oracle sessions you mentioned = the number of processes * 1.1+5 is the relationship between session and process.In fact, oracle (on linux) has a process to establish a session remotely.Sometimes we kill the session, but we can't kill it all the time.Will find him at the os level, kill.
Oracle single process on windows.
Generally speaking, the benefits of a session and a process are as mentioned above.The downside is that the more sessions there are, the more processes there are.When the number of processes is large, the process that the entire operating system can give is limited.
Other Answer 7:
Is there any official documentation on the statement that the number of sessions = the number of processes * 1.1+5?Can you provide the document number?The production environment in my hand does not seem to match this statement. For example, in a 19.12 production environment, the number of processes is 5000, but the number of sessions is 7552. It seems that the statement number of sessions = number of processes * 1.5 is more credible. What is the reason for this?What caused it?
Other Answer 8:
Thank you teachers for your answers, I have learned that session=processes*1.5+22 after 11g, but I am more curious, how does this 1.5 times come from, why does oracle default to 1.5 instead of others?Are there other considerations for this setup?
Other Answer 9:
边栏推荐
- 表达式计算器 ExpressionRunner
- 成功解决pydotplus.graphviz.InvocationException: GraphViz‘s executables not found
- 杜教筛【莫比乌斯前缀和,欧拉函数前缀和】推导与模板【一千五百字】
- [3D检测系列-PointRCNN]复现PointRCNN代码,并实现PointRCNN3D目标检测可视化,包含预训练权重下载链接(从0开始以及各种报错的解决方法)
- Oracle数据库表空间整理回收与释放操作
- 五种绑定彻底弄懂this,默认绑定、隐式绑定、显式绑定、new绑定、箭头函数绑定详解
- JS Bom window innerWidth clientWidth onresize 窗口滚动偏移量 返回顶部
- 【服务器存储数据恢复】华为OceanStor某型号存储raid5数据恢复案例
- 有一个设计时钟的题目,进行详细分析(三)
- 使用SqlSessionFactory工具类抽取
猜你喜欢

【ModelArts系列】华为ModelArts Notebook训练yolov3模型(开发环境)

HCIP 第十五天

A plastic bottle of ocean "fantasy drifting"

ESP8266 +0.96" I2C OLED Dial Clock

JS Bom window innerWidth clientWidth onresize 窗口滚动偏移量 返回顶部

Kotlin接口

音视频开发的正确(学习思路+技术指导)

win11 自带远程桌面使用(包含非局域网使用以及win11升级为专业版)

A transaction is in Mysql?What's the use?

c语言进阶篇:指针(四)
随机推荐
【MySQL】SQL学习
【ModelArts系列】华为ModelArts训练yolov3模型(训练管理)
动态绑定href url
houdini 使用HDA Processor 实现处理HDA输入输出
【C语言刷LeetCode】451. 根据字符出现频率排序(M)
Nuxt3学习
还在用命令行看日志?快用Kibana吧,可视化日志分析YYDS
Oracle 进程数和会话数的关系
JUC(八):synchronized小练习
ESP8266 +0.96" I2C OLED Dial Clock
matlab之函数
【服务器存储数据恢复】华为OceanStor某型号存储raid5数据恢复案例
复合类型--引用,指针
新手入门上位机开发 C#语言:PC串口发送数据
(RCE)远程代码/命令执行漏洞漏洞练习
selenium应用之拉勾简历邀约数据抓取与分析
有一个设计时钟的题目,进行详细分析(三)
戴尔首款纯软产品,再定义下一代对象存储
EL 表达式
每日优鲜生死劫:被曝清退大部分员工 仍未递交年报(附音频)