查看锁住的对象及会话id,serial#
select a.*
from (SELECT o.object_name,
l.locked_mode,
s.sid,
s.serial#,
s.sql_exec_start,
(sysdate - nvl(s.sql_exec_start, sysdate)) * 24 * 3600 as duration_second
FROM v$locked_object l, dba_objects o, v$session s
WHERE l.object_id = o.object_id
AND l.session_id = s.sid) a
where duration_second > 10 ---- Unit : second
;