阻塞:
通过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
通过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