查看oracle中正在执行的sql

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;

posted on 2018-04-28 12:17  逆天丶  阅读(363)  评论(0编辑  收藏  举报