View the sql being executed in oracle

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 http://43.154.161.224:23101/article/api/json?id=325007384&siteId=291194637