删除锁表进程

查询
select object_name as 对象名称,s.sid,s.serial#,p.spid as 系统进程号,s.machine
     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 and object_name='表名大写'
    
删除:
alter system kill session 'sid,serial#’;

猜你喜欢

转载自guanchenglong0220.iteye.com/blog/1815638