227.You plan to control idle sessions that are blocking other sessions from performing transactions. Your
requirement is to automatically terminate these blocking sessions when they remain idle for a specified
amount of time.
How would you accomplish this task?
A. Set metric threshold
B. Implement Database Resource Manager
C. Enable resumable timeout for user sessions
D. Add directives to Automatic Database Diagnostic Monitor (ADDM)
Answer: B
答案解析:
参考:http://blog.csdn.net/rlhua/article/details/13092965
题意:你打算控制空闲会话阻塞其他会话执行事务。你的要求,在一个指定的时间内,这些会话仍然闲置,会自动终止这些阻塞的会话。
数据库资源管理器提供了空闲时间限制:可以指定会话的空闲时间,超过该时间后将终止会话(MAX_IDLE_TIME)。你可以进一步限制资源管理器,使其只终止阻止其它会话的会话(MAX_IDLE_TIME_BLOCKER)。

本文详细阐述了如何通过设置数据库资源管理器来自动终止空闲会话,以解决会话阻塞其他事务执行的问题。具体介绍了MAX_IDLE_TIME和MAX_IDLE_TIME_BLOCKER参数的作用,提供了解决方案的实施步骤。
1万+

被折叠的 条评论
为什么被折叠?



