通過(guò)sid找出對(duì)應(yīng)系統(tǒng)的pid
SQL> select spid from v$process where addr in (select paddr from v$session where sid=1323);
SPID
------------
3269212
通過(guò)spid 找到sid
select sid from v$session where paddr in (select addr from v$process where spid=29698);
通過(guò)sid找出執(zhí)行的sql語(yǔ)句
sql>select sql_address,sql_hash_value from v$session where sid=20