Wednesday, September 10, 2008

V$FILESTAT


V$FILESTAT displays the number of physical reads and writes done and the total number of single-block and multiblock I/Os done at file level. As of Oracle Database 10g Release 2 (10.2), this view also includes reads done by RMAN processes for backup operations.
Column
Datatype
Description
FILE#
NUMBER
Number of the file
PHYRDS
NUMBER
Number of physical reads done
PHYWRTS
NUMBER
Number of times DBWR is required to write
PHYBLKRD
NUMBER
Number of physical blocks read
PHYBLKWRT
NUMBER
Number of blocks written to disk, which may be the same as PHYWRTS if all writes are single blocks
SINGLEBLKRDS
NUMBER
Number of single block reads
READTIM
NUMBER
Time (in hundredths of a second) spent doing reads if the TIMED_STATISTICS parameter is true; 0 if false
WRITETIM
NUMBER
Time (in hundredths of a second) spent doing writes if the TIMED_STATISTICS parameter is true; 0 if false
SINGLEBLKRDTIM
NUMBER
Cumulative single block read time (in hundredths of a second)
AVGIOTIM
NUMBER
Average time (in hundredths of a second) spent on I/O, if the TIMED_STATISTICS parameter is true; 0 if false
LSTIOTIM
NUMBER
Time (in hundredths of a second) spent doing the last I/O, if the TIMED_STATISTICS parameter is true; 0 if false
MINIOTIM
NUMBER
Minimum time (in hundredths of a second) spent on a single I/O, if the TIMED_STATISTICS parameter is true; 0 if false
MAXIORTM
NUMBER
Maximum time (in hundredths of a second) spent doing a single read, if the TIMED_STATISTICS parameter is true; 0 if false
MAXIOWTM
NUMBER
Maximum time (in hundredths of a second) spent doing a single write, if the TIMED_STATISTICS parameter is true; 0 if false

Note:
  1. File io stats: Requires timed_statistics=true
Select lower(name), (bytes / 1048576) sizemb, phyrds, readtim,
       phywrts, writetim
from   v$datafile df, v$filestat fs
where  df.file# = fs.file#
order by 1;
 
  1. V$FILESTAT can be used to find Oracle datafile activity. Two columns values reflect the number of disk accesses for each Datafile. The value of PHYRDS is the number of reads from each database file. The value of PHYWRTS is the number of writes to each database file. The total I/O for a single disk is the sum of PHYRDS and PHYWRTS for all the database files managed by the Oracle instance on that disk. Determine this value for each of your disks. Also determine the rate at which I/O occurs for each disk by dividing the total I/O by the interval of time over which the statistics are collected.

SELECT name, phyrds, phywrts
FROM   v$datafile df, v$filestat fs
WHERE  df.file# = fs.file#;
-- phycisal IO count

select sum(phyrds) + sum(phywrts) "Total I/O"
from   V$FILESTAT;

Oracle data dictionary views

Last updated: 2009-11-02 Monday


No comments:

Post a Comment