Question:
How can I calculate my Oracle I/O per
second? I know that stats$sysstat
can compute total I/O, but I need to calculate my I/O per second
using the AWR tables.
Answer: You can use the
dba_hist_sysstat table to compute I/O per second (IOPS).
If you don’t want to write your own I/O per
second script, see the
Oracle script
collection.
This script will calculate Oracle I/O throughput in
I/O per second (IOPS):
select
to_char(sn.end_interval_time,'yyyymmddhh24') the_date,
sum(decode(sn2.startup_time,sn3.startup_time,(newreads.value-
oldreads.value),newreads.value)) reads,
sum(decode(sn2.startup_time,sn3.startup_time,(newwrites.value-
oldwrites.value),newwrites.value)) writes,
(sum(decode(sn2.startup_time,sn3.startup_time,(newreads.value-
oldreads.value),newreads.value)))+
(sum(decode(sn2.startup_time,sn3.startup_time,(newwrites.value-
oldwrites.value),newwrites.value)))
total
from
dba_hist_sysstat oldreads,
dba_hist_sysstat newreads,
dba_hist_sysstat oldwrites,
dba_hist_sysstat
newwrites,
dba_hist_snapshot sn,
dba_hist_snapshot sn2,
dba_hist_snapshot sn3
where
See Code Depot for Full Script
group by
to_char(sn.end_interval_time,'yyyymmddhh24')
order by
to_char(sn.end_interval_time,'yyyymmddhh24')
;
|
|
|
|
Guarantee your Success!
Oracle is the
world's most complex, robust and flexible database, considered
impossible to master without a mentor.
That's why all BC
Oracle trainers are working professionals, experts in Oracle who
share their tips and secrets. |
|
| |
|
Burleson is the American Team

Note:
This Oracle
documentation was created as a support and Oracle training reference for use by our
DBA performance tuning consulting professionals.
Feel free to ask questions on our
Oracle forum.
Verify
experience!
Anyone
considering using the services of an Oracle support expert should
independently investigate their credentials and experience, and not rely on
advertisements and self-proclaimed expertise. All legitimate Oracle experts
publish
their Oracle
qualifications.
Errata?
Oracle technology is changing and we
strive to update our BC Oracle support information. If you find an error
or have a suggestion for improving our content, we would appreciate your
feedback. Just
e-mail:
and include the URL for the page.
Copyright ? 1996 - 2012
All rights reserved.
Oracle ?
is the registered trademark of Oracle Corporation.
|
|