Below is the script to find the respective sid of an server proccess id.

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;

SEE ALSO - Get ospid from sid

ospidsid DATABASE SCRIPTS


Related Topics

How to get tablespace quota details of an user in oracle
Find sessions consuming lot of CPU
Find user commits per minute in oracle database
Find the active transactions in oracle database
Get sid from ospid
How to find cpu and memory information of oracle database server
Script to get cpu usage and wait event information in oracle database
How to find execution history of an sql_id
How to monitor parallel queries in oracle db
Find pending distributed pending transactions in oracle

You May Also Like

How to change the case (Lower to Upper and Vice Versa) in R
Shell script for monitoring blocking sessions
SET ROWLIMIT in oracle 18C - New feature
How to change spfile in Oracle RAC.
Script to get cpu usage and wait event information in oracle database
How to keep or delete columns/Variable of a data frame in R
How to use expdp to export data from physical standby database
Change dbsnmp password for target db in oem 12c
How to move spfile from file system to ASM in RAC
Hive installation with mysql database

From This Website

Shell script to delete old archives using RMAN
Tablespace monitoring shell script
How to move spfile from file system to ASM in RAC
How to flashback a Pluggable database ( PDB) in oracle 12.2
Shell script for monitoring blocking sessions
How to use expdp to export data from physical standby database
SETUP ORACLE 18C DATABASE - STEP BY STEP
TNS-01106: Listener using listener name has already been started
how to change archivelog destination in oracle
Hive installation with mysql database