查看当前oracle中正在执行的sql语句——即查询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;

参考:https://blog.csdn.net/qq_33301113/article/details/54766751

猜你喜欢

转载自blog.csdn.net/Sun_of_Rainy/article/details/83547819
今日推荐