\
select sql_id from v$session
where paddr in(
select addr from v$process
where spid in('16796','11972','9812','11652','5484')
)
select * from v$sqlarea where sql_id in(sql_id1,sql_id2,sql_id3...);
SELECT sid,serial#,sql_id from v$session where sql_id in(sql_id1,sql_id2,sql_id3...)
alter system kill session 'sid,serial#';
或批量杀进程
SELECT 'alter system kill session '''||sid||','||serial#||''';' from v$session where sql_id in(sql_id);