如何检查Oracle中特定会话的历史

发布于 2025-02-11 16:37:50 字数 1092 浏览 0 评论 0原文

我正在使用Oracle数据库19C。我需要确定历史阻止会话的详细信息,这些细节已阻止了近50个会议。 In ASH report, i can find the sid 1258 under blocking_session column under dba_hist_active_sess_history but not under sid column which is pretty unusual.我也找不到与Hang分析报告中阻止会话活动有关的任何信息。除了ASH以外的会话深度,有什么方法可以钻出其他会议的深度吗?

dba_hist_active_sess_history Uptough

SAMPLE_ID SAMPLE TIME   SID STATE         EVENT                     SQL_ID             BLK SID START SQL_EXEC_ID

---------- ----------- ----- ------------- ------------------------- --------------- ---------- ----- -----------

135345711 21 11:25:11   217 WAITING       enq: TX - row lock conten shd23fhjdgjyhu         1258 <<== blocking sid 21:04    19783669

悬挂分析输出

 {
                      p1: 'driver id'=0x54435000
                      p2: '#bytes'=0x1
            time in wait: 2 min 16 sec
           timeout after: never
                 wait id: 1445
                blocking: 1 session
          current sql_id: 3598363420

谢谢!

I am using oracle database 19c. I need to identify the historical blocking session details which had blocked almost 50 sessions. In ASH report, i can find the sid 1258 under blocking_session column under dba_hist_active_sess_history but not under sid column which is pretty unusual. I could not find any information related to activity of blocking session from hang analyze report as well. Is there any way to drill down the depth of a session other than ASH?

dba_hist_active_sess_history output

SAMPLE_ID SAMPLE TIME   SID STATE         EVENT                     SQL_ID             BLK SID START SQL_EXEC_ID

---------- ----------- ----- ------------- ------------------------- --------------- ---------- ----- -----------

135345711 21 11:25:11   217 WAITING       enq: TX - row lock conten shd23fhjdgjyhu         1258 <<== blocking sid 21:04    19783669

Hang analyze output:

 {
                      p1: 'driver id'=0x54435000
                      p2: '#bytes'=0x1
            time in wait: 2 min 16 sec
           timeout after: never
                 wait id: 1445
                blocking: 1 session
          current sql_id: 3598363420

Thanks in advance !

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文