select * from v$db_object_cache where locks > 0 and pins > 0 and type='PROCEDURE';

select   b.sid,b.SERIAL#,a.OBJECT, 'alter system kill session   ' || '''' || b.sid || ',' ||b.SERIAL# ||  ''';' kill_command
               from   SYS.V_$ACCESS a, SYS.V_$session b
               where    a.type = 'PROCEDURE'
                  and   (a.OBJECT like upper('%PROCEDURE_NAME%') or
                            a.OBJECT like lower('%PROCEDURE_NAME%'))
                 and a.sid = b.sid
                 and b.status = 'ACTIVE';

alter system kill session   '171,13';

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2021-12-27
  • 2022-12-23
  • 2021-06-14
  • 2022-12-23
猜你喜欢
  • 2022-03-01
  • 2022-12-23
  • 2021-08-17
  • 2022-02-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案