1.查询出占用资源的会话
select l.session_id,o.owner,o.object_name from v$locked_object l,dba_objects o where l.object_id=o.object_id;
select t2.username,t2.sid,t2.serial#,t2.logon_time from v$locked_object t1,v$session t2 where t1.session_id=t2.sid order by t2.logon_time;
3.Kill占用的资源,根据SID,和Serial
alter system kill session '258,28795';原文链接:https://www.f2er.com/oracle/211710.html