Thursday 25 February 2021

How to find SID using SPID in oracle database

 

Use below query to find SID using SPID.


col sid format 999999
col username format a20
col osuser format a15
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;





Thanks for going through the post.............

No comments:

Post a Comment