Oracle query currently executing SQL

Currently executing sql query
select a.program, b.spid, c.sql_text,c.SQL_ID
  from v$session a, v$process b, v$sqlarea c
 where a.paddr = b.addr
   and a.sql_hash_value = c.hash_value
   and a.username is not null;

Guess you like

Origin blog.csdn.net/hardyer/article/details/103258778