select spid, program, a.*
from v$process a
where program != 'PSEUDO'
and addr not in (select paddr from v$session)
and addr not in (select paddr from v$bgprocess)
and addr not in (select paddr from v$shared_server);
11G中v$session加了CREATOR_ADDR、CREATOR_SERIAL#,找出killed会话的spid更方便啦。
CREATOR_ADDR - state object address of creating process
CREATOR_SERIAL# - serial number of creating process
CREATOR_ADDR
is the column that can be joined with the PADDR column in V$PROCESS to
uniquely identify the killed process corresponding to the former
session.
select * from v$process where addr=(select creator_addr from v$session where sid=140);来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25274175/viewspace-1046412/ ,如需转载,请注明出处,否则将追究法律责任。