Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Gather IO stats
mngong_at_gmail.com wrote:
> Your answers are greatly appreciated Charles Sybrand and Daniel.
> The original question was about a query that does the subtractions.
> Statspack and Charles query will give the information needed but
> manually adding/subtracting
> may lead to some errors
> Thanks again for your input
If you created the logging table, and you can make certain that the information is gathered at regular intervals, it is very easy to automatically compare the results:
Logging table: FILE_ACTIVITY, capturing every 30 minutes (1 day divided by 24 divided by 2), example:
SELECT
FA2.TIME_STAMP, FA2.FILE_TYPE, FA2.FILE#, FA2.PHYRDS - FA1.PHYRDS PHYRDS, FA2.PHYWRTS - FA1.PHYWRTS PHYWRTS, FA2.PHYBLKRD - FA1.PHYBLKRD PHYBLKRD
FA2.TIME_STAMP, FA2.FILE_TYPE, FA2.FILE#;
If you have a lot of records, consider indexing the various columns.
Charles Hooper
PC Support Specialist
K&M Machine-Fabricating, Inc.
Received on Tue Aug 01 2006 - 19:07:07 CDT