Oracle数据库中查看锁表信息及解锁
作者:互联网
1、查看锁表的信息Oracle数据库中查看锁表信息及解锁
select
a.object_name
,b.session_id
,c.serial#
,c.program
,c.username
,c.command
,c.machine
,c.lockwait
from all_objects a,v$locked_object b,v$session c
where a.object_id=b.object_id and c.sid=b.session_id;
2、对表进行解锁
alter system kill session '$session_id,$serial#'; --$分别为会话id和进程号
标签:锁表,解锁,object,session,Oracle,serial,id 来源: https://blog.csdn.net/V_matrix/article/details/119219170