DBA Scripts & knowledge....!
....there is no such thing as failure, only learning experiences.
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment