oracle通过pid找到sid再找出执行sql

通过sid找出对应系统的pid
SQL> select spid from v$process where addr in (select paddr from v$session where sid=1323);
SPID
------------
3269212
 
 
通过spid 找到sid
select sid from v$session where paddr in (select addr from v$process where spid=29698);
 
通过sid找出执行的sql语句
 
sql>select sql_address,sql_hash_value from v$session where sid=20

分享名称:oracle通过pid找到sid再找出执行sql
网站URL:http://azwzsj.com/article/pdpedd.html