标签:
首先:查询数据那些表被锁定
1. SELECT l.session_id sid, s.serial#, l.locked_mode,l.oracle_username, l.os_user_name,s.machine, s.terminal, o.object_name, s.logon_time FROM v$locked_object l, all_objects o, v$session s WHERE l.object_id = o.object_id AND l.session_id = s.sid ORDER BY sid, s.serial# ;
其次,删除锁定数据的方法 2. ALTER system KILL session ‘216,34185‘;
标签:
原文地址:http://www.cnblogs.com/bluestream/p/4699684.html