Oracle finds sid through pid and then finds out how to execute sql.
Find out the pid of the corresponding system through sid
SQL > select spid from v$process where addr in (select paddr from v$session where sid=1323); SPID
-
3269212 find sid through spid
Select sid from v$session where paddr in (select addr from v$process where spid=29698); find out the executed sql statement sql > select sql_address,sql_hash_value from v$session where sid=20 through sid