1. 程式人生 > >鎖表查詢

鎖表查詢

object serial alter ssi 釋放 -a _id where 鎖表

--鎖表查詢SQL
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;


--釋放SESSION SQL:
--alter system kill session ‘sid, serial#‘;
ALTER system kill session ‘1065, 57065‘;

鎖表查詢