查询oracle数据库某段时间执行的语句

select * from v$sqlarea b
where b.FIRST_LOAD_TIME between '2018-07-26/17:00:00' and'2018-07-26/18:30:00' 
and upper(b.sql_text) like '%ROLE%'
 order by b.FIRST_LOAD_TIME

猜你喜欢

转载自blog.csdn.net/s1r2w3x/article/details/81235884