当前位置:数据库 > Oracle >>

Oracle删除锁表进程


Oracle删除锁表进程
 
查询
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='表名大写' 
  www.zzzyk.com  
删除:
alter system kill session 'sid,serial#’;
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,