Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 E-mail Us
 Oracle Articles
New Oracle Articles

 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog

 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Oracle Support

 SQL Tuning

 Oracle UNIX
 Oracle Linux
 Remote s
 Remote plans
 Application Server

 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S


 Consulting Staff
 Consulting Prices
 Help Wanted!


 Oracle Posters
 Oracle Books

 Oracle Scripts

Don Burleson Blog 







v$iostat_function tips

Oracle Database Tips by Donald BurlesonJanuary 8, 2015

Question:  I see that Oracle has a v$iostat_function view that allows me to see I/O timings.  Are these the same number is an AWR report?  When is it appropriate to use v$iostat_function?
Answer:  Oracle does not run in a vacuum, and Oracle has introduced many tools to monitor the external environment.  Remember, no amount of tuning is going to help a database that has an external bottleneck, such as I/O enqueues.

  • The dbms_stats.gather_system_stats to sample the external environment for CPU and disk latency.  See using dbms_stats.gather_system_stats for external monitoring.

  • Oracle has internal instrumentation mechanisms capture disk I/O metrics automatically for all tablespaces and files and stored them in the v$ structures, the dba_hist tables and the ASH tables.

Internally Oracle knows the individual I/O latency for all tablespaces and datafiles. As we see these iostat details in all AWR and STATSPACK reports.
Oracle has introduced three iostat views to display I/O details:

  • v$iostat_consumer_group:  If Oracle Database Resource Manager is enabled this view captures I/O statistics for consumer groups.  See monitoring I/O against consumer groups.

  • v$iostat_file:  This v$iostat_file view displays I/O statistics of database files that are or have been accessed. The small_sync_read_latency column displays the latency for single block synchronous reads (in milliseconds), which translates directly to the amount of time that clients need to wait before moving onto the next operation.  The normal range of I/O speeds range from .002 ms for solid state disks (RAM disk) to 5 ms for a disk array, up to 15 ms for a standard platter disk without any RAM caching.

  • v$iostat_function:  This v$iostat_function view captures I/O statistics for database background processes.  Oracle has named the sum of the background processes as functions (ARCH, LGWR, DBWR, &c).  Also see v$iostat_function_detail.

Here are the writer processes within Oracle that are collected by v$iostat_function:



order by

----------- ------------------
0           RMAN
1           DBWR
2           LGWR
3           ARCH
4           XDB
5           Streams AQ
6           Data Pump
7           Recovery
8           Buffer Cache Reads
9           Direct Reads
10          Direct Writes
11          Others

Quest expert Guy Harrison has this great SQL script to display The wait time for all background processes that perform system I/O (DBWR, ARCH, etc.)
col function_name    format a25         heading "File Type"
col reads            format 99,999,999  heading "Reads"
col writes           format 99,999,999  heading "Writes"
col number_of_waits  format 99,999,999  heading "Waits"
col wait_time_sec    format 999,999,999 heading "Wait Time|Sec"
col avg_wait_ms      format 999.99      heading "Avg|Wait ms"
set lines 80
set pages 10000
set echo on
   small_read_reqs + large_read_reqs reads,
   small_write_reqs + large_write_reqs writes,
   wait_time/1000 wait_time_sec,
   case when number_of_waits > 0 then
          round(wait_time / number_of_waits, 2)
       end avg_wait_ms
order by
    wait_time desc;

Get the Complete
Oracle SQL Tuning Information 

The landmark book "Advanced Oracle SQL Tuning  The Definitive Reference"  is filled with valuable information on Oracle SQL Tuning. This book includes scripts and tools to hypercharge Oracle 11g performance and you can buy it for 30% off directly from the publisher.



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.


Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


Copyright © 1996 -  2017

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.

Remote Emergency Support provided by Conversational



Oracle Training at Sea
oracle dba poster

Follow us on Twitter 
Oracle performance tuning software 
Oracle Linux poster