Oracle 数据库查锁 删锁

1、查锁
select l.session_id sid, s.serial#, l.locked_mode, l.oracle_username, s.user#, l.os_user_name, s.machine, s.terminal, a.sql_text, a.action from v$sqlarea a, v$session s, v$locked_object l where l.session_id
= s.sid and s.prev_sql_addr = a.address order by sid, s.serial#; 2、删锁 alter system kill session '34,27424';

 

posted @ 2022-08-11 17:15  D·Felix  阅读(93)  评论(0编辑  收藏  举报