Question

I want to fetch the logical reads per second directly from database table. I want the same value as shown in AWR report. Seems like dba_hist_seg_stat table has logical read count, but I still can't relate it to time. Can anyone please let me know how can I exactly calculate the logical reads per second in for every hour as AWR report shows it?

Was it helpful?

Solution

This assumes you have stats pack license:

select * from V$SYSMETRIC where metric_name = 'Logical Reads Per Sec';

select * from V$SYSMETRIC_SUMMARY where metric_name = 'Logical Reads Per Sec';

select * from V$SYSMETRIC_HISTORY where metric_name = 'Logical Reads Per Sec';

select * from DBA_HIST_SYSMETRIC_SUMMARY where metric_name = 'Logical Reads Per Sec';

The choice of the view depends on the detail and time span that you want to look in. The last one reads all awr snapshots. The first one shows the last minute and last 15 seconds values.

Also take a look at Metrics vs Statistics

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top