Total Pageviews

Sunday, April 1, 2018

killing database sessions



select s.inst_id, s.sid, s.serial#, p.spid, s.username
     , s.schemaname, s.program, s.terminal, s.osuser
  from Gv$session s
  join Gv$process p
    on s.paddr = p.addr
   and s.inst_id = p.inst_id
 where s.type != 'BACKGROUND'
and s.username='yourusername'


alter system kill session 'sid,serial#' immediate;

No comments:

Post a Comment