select object_name as 对象名称,s.sid,s.serial#,p.spid as 系统进程号, s.TERMINAL as 计算机名
from v$locked_object l , dba_objects o , v$session s , v$process p
where l.object_id=o.object_id and l.session_id=s.sid and s.paddr=p.addr;-- and s.TERMINAL='ADMINISTRATOR-COMPUTER';
alter system kill session '1096,18907'; --1096为object_name;18907为sid;
alter system kill session '1105,54871';
alter system kill session '1024,33822';
PL/SQL 杀掉数据库阻塞线程
最新推荐文章于 2023-02-07 10:45:28 发布