如何检查Oracle中特定会话的历史
我正在使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论