oracle通过pid找到sid再找出执行sql
通过sid找出对应系统的pid
SQL> select spid from v$process where addr in (select paddr from v$session where sid=1323);
SQL> select spid from v$process where addr in (select paddr from v$session where sid=1323);
SPID
------------
3269212
------------
3269212
通过spid 找到sid
select sid from v$session where paddr in (select addr from v$process where spid=29698);
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
文章网址:http://ybzwz.com/article/pdpedd.html