从阻止会话的Oracle查找查询

编程入门 行业动态 更新时间:2024-10-25 16:28:28
本文介绍了从阻止会话的Oracle查找查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想找出查询,该查询的任何操作均被阻止. 从DBA,我得到特定会话被阻止的输入,但是在不知道哪个查询引起问题的情况下,我无法进一步进行调查. 有什么办法找出引起问题的确切查询?

I want to find out the query for which any operation is blocked. From DBA I'm getting input that particular session is blocked but I cannot proceed with investigation further without knowing which query is causing issue. is there any way to find out exact query causing issue?

推荐答案

Oracle Blocking会话 非常常见.请检查以下查询,它将帮助您获取详细信息.

Oracle Blocking session is very common. Please check the below query it will help you to get the detailed information.

select l1.inst_id,l1.sid, ' IS BLOCKING ', l2.sid,l1.type,l2.type,l1.lmode,l2.lmode,l2.inst_id from gv$lock l1, gv$lock l2 where l1.block =1 and l2.request > 0and l1.id1=l2.id1 and l1.id2=l2.id2;

更多推荐

从阻止会话的Oracle查找查询

本文发布于:2023-10-26 09:54:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1529809.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Oracle

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!