oracle锁表查询及解锁

1.查看锁表的进程id

SELECT  s.sid, s.serial#

FROM gv$locked_object l, dba_objects o, gv$session s

WHERE l.object_id = o.object_id

AND l.session_id = s.sid;

2.结束锁表进程

ALTER system kill session '22, 12837';

22为sid,12837 为进程号(s.serial)

3.配置监听快捷运行方式

 

 

 

posted @ 2019-09-26 11:23  郗王宸  阅读(117)  评论(0编辑  收藏  举报