Oracle查询锁表和解锁
时间:2021-07-01 10:21:17
帮助过:20人阅读
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
and oracle_username
= ‘用户名‘ --用户名要大写
ORDER BY sid, s.serial#
2.解锁
ALTER system KILL session ‘SID,serial#‘
Oracle查询锁表和解锁
标签:system alter min pre class 大写 blog where lock