oracle 查询锁表和解锁
原文章: https://www.cnblogs.com/yx007/p/9077939.html
关联两表,查询锁表进程:
select * from v$session t1, v$locked_object t2 where t1.sid = t2.SESSION_ID;
杀掉锁表进程:
记录下SID和serial# ,分别替换掉下面的1155,39095,即可解除锁表
alter system kill session '1155,39095';
原文章: https://www.cnblogs.com/yx007/p/9077939.html
关联两表,查询锁表进程:
select * from v$session t1, v$locked_object t2 where t1.sid = t2.SESSION_ID;
杀掉锁表进程:
记录下SID和serial# ,分别替换掉下面的1155,39095,即可解除锁表
alter system kill session '1155,39095';