在执行sql的过程中可能会遇到阻塞的情况,这种情况下可能会等N久.所以.......
----------------------------------------- --会话 select l.session_id,o.owner,o.object_name from v$locked_object l,dba_objects o where l.object_id=o.object_id ----------------------------------------- --会造成wait的会话 select t2.username,t2.sid,t2.serial#,t2.logon_time from v$locked_object t1,v$session t2 where t1.session_id=t2.sid order by t2.logon_time; ----------------------------------------- --结束指定会话 alter system kill session '1258,34133';
如果是PLSQL:打开plsql -> 工具 -> 会话 -> 找到对应会话,右键关闭即可