-- 查询锁
select count(*) from v$locked_object;
select b.owner,b.object_name,a.session_id,a.locked_mode from v$locked_object a,dba_objects b where b.object_id = a.object_id;
select object_name as 对象名称,s.sid,s.serial#,p.spid as 系统进程号
from v$locked_object l , dba_objects o , v$session s , v$process p
where l.object_id=o.object_id and l.session_id=s.sid and s.paddr=p.addr;
--删除锁
-- alter system kill session 'sid,serial#'
alter system kill session '734,389';
alter system kill session '476,185';
alter system kill session '733,142';
alter system kill session '493,23';