小技巧:oracle锁表杀进程
查询锁住进程
SELECT object_name, machine, s.sid, s.serial# FROM gv$locked_object l, dba_objects o, gv$session s WHERE l.object_id = o.object_id AND l.session_id = s.sid;
解锁语句
alter system kill session 'sid, serial#'; 例子如下: ALTER system kill session '1222, 31221';