Monday, February 4, 2019

Get database SID using OS Process ID

select b.spid,a.sid, a.serial#,a.username, a.osuser
from gv$session a, gv$process b
where a.paddr= b.addr
and b.spid='&spid'
order by b.spid;

No comments:

Post a Comment