oracle锁表

oracle-查看锁表和解锁

爱⌒轻易说出口 提交于 2019-11-28 18:16:32
1. 查看锁表情况 SELECT l . session_id sid , s . serial #, l.locked_mode,l.oracle_username, l.os_user_name,s.machine, s.terminal, o.object_name, s.logon_time FROM v$locked_object l , all_objects o , v$ session s WHERE l . object_id = o . object_id AND l . session_id = s . sid ORDER BY sid , s . serial # ; 2. 解锁 ALTER system KILL session 'sid,serial#' ; 来源: https://blog.csdn.net/zongf0504/article/details/88830423