Get the App
SLTechnology News&Howtos  ›  Servers  › 

Oracle finds sid through pid and then finds out how to execute sql.

Shulou Source: shulou.com Published: 2022-06-02 05:23:11 09月16日 Update

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

Tags: System statement Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Technology Shulou Information vpn Microsoft