Oracle查看被锁的表和解锁

查看被锁的表

select   p.spid,a.serial#, c.object_name,b.session_id,b.oracle_username,b.os_user_name  

from   v$process   p,v$session   a,   v$locked_object   b,all_objects   c  

where   p.addr=a.paddr   and   a.process=b.process   and   c.object_id=b.object_id

查看连接的进程 
SELECT sid, serial#, username, osuser FROM v$session; 
杀掉进程 
alter   system     kill   session   'sid,serial#'; 

原文:ddandyy

原文地址:https://www.cnblogs.com/shihujiang/p/2546681.html