PL/SQL解锁表

先查询什么东西锁了,下面两个SQL都可以

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#,logon_time from v$locked_object a,v$session b where a.session_id = b.sid order by b.logon_time;

 

然后打开PL/SQL的工具→会话

把上面查到的SID同样的会话关了就行了

posted @ 2020-03-31 10:52  Ice_Blue_Brother  阅读(268)  评论(0编辑  收藏  举报