oracle 会话和线程,Oracle,一个用户(应用程序连接)多并发会话(多线程连接)(Oracle, one user (application connection) multi concurr...

博客讨论了数据库连接池如何处理多个中间层会话的并发请求,强调了合适的连接池大小对于避免资源争抢的重要性。同时,提到了并发会话可能面临的行级锁冲突和系统资源(CPU、RAM、I/O)过载问题,以及这些问题如何影响会话性能。文章指出,Oracle数据库可以同时处理多个会话的查询,但资源竞争可能涉及不同用户会话,导致性能干扰。
摘要由CSDN通过智能技术生成

Depends what you mean by "interfere".

Your middle tier connection pool will open a number of physical connections to the database. Sessions in the middle tier will request a connection from the pool, do some work, and return the connection to the pool. Assuming that your connection pool is large enough to handle the number of simultaneous calls being made from your application (based on the number of sessions, the length of time each session needs a logical connection, and the fraction of "think time" to "action time" in each session), you won't experience contention due to opening connections.

Oracle is perfectly happy to run queries in multiple sessions simultaneously. Obviously, though, there is the potential for one session to contend with another session for resources. Two sessions might contend for the same row-level lock if they are both trying to update the same row. If you have enough sessions, you might end up in a situation where CPU or RAM or I/O is being overtaxed and the load that one session creates causes performance issues in another session. Oracle doesn't care which Oracle user(s) are involved in this sort of contention-- you'd have the same potential for interference with 10 sessions all running as 1 user as you would if there were 10 sessions running as 10 different users assuming the sessions were doing the same things.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值