select sess.sid,
sess.serial#,
lo.oracle_username,
lo.os_user_name,
ao.object_name,
lo.locked_mode
from v$locked_object lo,
dba_objects ao,
v$session sess
where ao.object_id = lo.object_id and lo.session_id = sess.SID; 获得未提交的事物的列表和基础信息
然后根据 sessionID和serial#号强制关闭事物:
ALTER SYSTEM KILL SESSION '9,108';
--'9,108'为sessionID和serial#号,逗号分开