标签:oracle tx lock row lock contention
来源于:
How to use historic ASH data to identify lock conflicts (文档 ID 1593227.1)
对于当前正在lock的情况,脚本为(单机和rac通用):
with lk as (select blocking_instance||'.'||blocking_session blocker, inst_id||'.'||sid waiter from gv$session where blocking_instance is not null and blocking_session is not null) select lpad(' ',2*(level-1))||waiter lock_tree from (select * from lk union all select distinct 'root', blocker from lk where blocker not in (select waiter from lk)) connect by prior waiter=blocker start with blocker='root';
也就是说:1号实例的sid为1094的sssion 阻塞着 1号实例的sid为1077的session
检查行锁等待问题的脚本(单机和rac都通用),布布扣,bubuko.com
标签:oracle tx lock row lock contention
原文地址:http://blog.csdn.net/msdnchina/article/details/38279877