欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

分享 "分组每小时进程数 "SQL

最编程 2024-05-05 09:42:31
...

select substrB(sample_time ,1,13),count(1)

from dba_hist_active_sess_history se, dba_hist_sqltext sq

where se.sample_time >=

to_date('2024-03-15 00:00:00', 'YYYY-MM-DD HH24:MI:SS')

and se.sample_time

to_date('2024-03-18 08:00:00', 'YYYY-MM-DD HH24:MI:SS')

and SESSION_ID=1981

group by substrB(sample_time ,1,13)

order by 1;

推荐阅读