Oracle锁表查询以及表解锁
1.查察哪个表被锁:select b.owner,b.object_name,l.session_id,l.locked_mode
from v$locked_object l, dba_objects b where b.object_id=l.object_id; 2.查察被锁表的sid 和serial# :
select t2.username,t2.sid,t2.serial#,t2.logon_time from v$locked_object t1,v$session t2 where t1.session_id=t2.sid order by t2.logon_time; 3.实行下面的语句:
alter system kill session 'sid,serial#';
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页:
[1]