--查询锁表的用户及主机名
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 '23, 1647';
--查询锁表的用户及主机名
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 '23, 1647';