数据库最近执行了哪些sql语句
3个回答
展开全部
SELECT b.sql_text, --content of SQL
a.machine, --which machine run this code
a.username, a.module,
-- the method to run this SQL
c.sofar / totalwork * 100,
--conplete percent
c.elapsed_seconds, --run time
c.time_remaining --remain to run time
FROM v$session a, v$sqlarea b, v$session_longops c
WHERE a.sql_hash_value = b.hash_value(+) AND a.SID = c.SID(+)
AND a.serial# = c.serial#(+)
--AND a.sid=139
a.machine, --which machine run this code
a.username, a.module,
-- the method to run this SQL
c.sofar / totalwork * 100,
--conplete percent
c.elapsed_seconds, --run time
c.time_remaining --remain to run time
FROM v$session a, v$sqlarea b, v$session_longops c
WHERE a.sql_hash_value = b.hash_value(+) AND a.SID = c.SID(+)
AND a.serial# = c.serial#(+)
--AND a.sid=139
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |