## find SID using SPID in DB - Oracle##
find SID using SPID in oracle database
col sid format 9999999
col username format a25
col osuser format a16
select b.spid,a.sid, a.serial#,a.username, a.osuser
from v$session a, v$process b
where a.paddr= b.addr
and b.spid='&spid'
order by b.spid;
Comments
Post a Comment