check and kill long running session if needed

佚名 / 2023-05-19 / 原文

select 'alter system kill session '''|| t.SID||','||t.SERIAL#||''';' from v$session t where t.SQL_ID='&sql_id'