日期:2014-05-16 浏览次数:20974 次
select 'blocker('
------解决方案--------------------
wb.holding_session
------解决方案--------------------
':'
------解决方案--------------------
sb.username
------解决方案--------------------
')-sql:'
------解决方案--------------------
qb.sql_text blockers,sb.machine,sb.terminal,
'waiter ('
------解决方案--------------------
wb.waiting_session
------解决方案--------------------
':'
------解决方案--------------------
sw.username
------解决方案--------------------
')-sql:'
------解决方案--------------------
qw.sql_text waiters ,sw.machine,sb.terminal,
wb.LOCK_TYPE, wb.mode_held,wb.mode_requested,wb.lock_id1, wb.lock_id2
from dba_waiters wb,
v$session sb,
v$session sw,
v$sqlarea qb,
v$sqlarea qw
where wb.holding_session=sb.sid
and wb.waiting_session=sw.sid
and sb.prev_sql_addr=qb.address
and sw.sql_address=qw.address
and wb.mode_held<>'None';