数据库
首页 > 数据库> > Oracle锁表查询与解锁

Oracle锁表查询与解锁

作者:互联网

1.查看锁表进程;
select * from v$session t1, v$locked_object t2 where t1.sid = t2.SESSION_ID;

 

2.杀掉锁表进程: 

记录下SID和serial# ,分别替换掉下面的1155,39095,即可解除锁表

alter system kill session '1155,39095'; 

标签:1155,锁表,解锁,39095,t2,t1,session,Oracle
来源: https://www.cnblogs.com/banxian-yi/p/11023729.html