Query the process ID of the current session

select spid

  from v$process

 where addr = (select paddr

                 from v$session

                where sid = (select distinct sid from v$mystat));

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326792246&siteId=291194637