怎么查看oracle是否锁表?
展开全部
若多人同时对一条记录进行操作则会引起死锁
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 b.username,b.sid,b.serial#
from v$locked_object a,v$session b
where a.session_id = b.sid order by b.logon_time
alter system kill session '950,13760';
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 b.username,b.sid,b.serial#
from v$locked_object a,v$session b
where a.session_id = b.sid order by b.logon_time
alter system kill session '950,13760';
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询