To find out blocker & waiter in RAC Instance (specially useful in EBS)
set lines 200
col WMOD for a20
col WCID for a20
col BCID for a20
col BMOD for a20
col BLOCKER for a12
col WAITER for a10
select vsb.sid bsid, vsb.inst_id binst, vsb.username blocker, vsb.client_identifier bcid, vsb.module bmod,
vsw.sid wsid, vsw.inst_id winst, vsw.username waiter, vsw.client_identifier wcid, vsw.module wmod,
trunc(vlw.ctime/60) minutes
from (select inst_id,sid, id1, id2, ctime from gv$lock where request > 0) vlw,
(select inst_id,sid, id1, id2, ctime from gv$lock where block > 0) vlb,
gv$session vsb,
gv$session vsw
where vsw.sid=vlw.sid
and vsb.sid=vlb.sid
and vsb.inst_id=vlb.inst_id
and vsw.inst_id=vlw.inst_id
and vlb.id1=vlw.id1
and vlb.id2=vlw.id2
order by blocker, minutes desc
/
BSID BINST BLOCKER BCID BMOD WSID WINST WAITER WCID WMOD MINUTES
---------- ---------- ------------ -------------------- -------------------- ---------- ---------- ---------- -------------------- -------------------- ----------
3204 2 APPS JSTANIK e:INV:frm:WIPTXCFM 13861 1 APPS MMRNKA e:INV:frm:WSHFRREL 23
3204 2 APPS JSTANIK e:INV:frm:WIPTXCFM 5696 1 APPS M-JTKADLEC e:INV:frm:INVTOTRX 23
3204 2 APPS JSTANIK e:INV:frm:WIPTXCFM 6908 1 APPS MMRNKA e:INV:frm:WSHFRREL 20
3204 2 APPS JSTANIK e:INV:frm:WIPTXCFM 8866 1 APPS MMRNKA e:INV:frm:WSHFRREL 16
3204 2 APPS JSTANIK e:INV:frm:WIPTXCFM 11372 1 APPS SMPATEKA e:WIP:frm:WIPTXMAT 16
3204 2 APPS JSTANIK e:INV:frm:WIPTXCFM 3773 1 APPS AJPATEL e:INV:frm:WSHFRREL 16
3204 2 APPS JSTANIK e:INV:frm:WIPTXCFM 39 1 APPS CHAUHANK e:INV:frm:WSHFRREL 14
3204 2 APPS JSTANIK e:INV:frm:WIPTXCFM 77 1 APPS NSHARMA e:INV:frm:WSHFRREL 8
3204 2 APPS JSTANIK e:INV:frm:WIPTXCFM 9423 1 APPS IRBJEV e:INV:frm:INVTOTRX 6
3204 2 APPS JSTANIK e:INV:frm:WIPTXCFM 1917 2 APPS PVOJACEK e:INV:bes:xxont.orac 1
le.apps.ont.OrderLin
No comments:
Post a Comment