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

 
 Home
 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
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

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

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 

v$filemetric_history

Oracle Tips by Burleson Consulting

 

The view v$filemetric_history   reports such I/O metrics as averages for file read and write times and the number of physical reads and writes for both operations and blocks.  This view allows the DBA to estimate datafile I/O activity that occurred during the last hour. For example, the file_reads_hr_ash.sql query retrieves the I/O metrics for a particular datafile:

 

            file_reads_hr_ash.sql

 

SELECT

  f.file_name,

  to_char(h.begin_time,'hh24:mi:ss') "Begin",

  to_char(h.end_time,'hh24:mi:ss') "End",

  h.AVERAGE_READ_TIME,

  h.PHYSICAL_READS

 FROM

  v$filemetric_history h,

  dba_data_files f

WHERE

      h.file_id = f.file_id

  AND f.file_id = 3

ORDER BY

  h.begin_time DESC  

 

The output looks like the following:

 

FILE_NAME                                Begin    End      AVERAGE_READ_TIME PHYSICAL_READS

---------------------------------------- -------- -------- --- --------------

D:\ORACLE\SYSAUX01.DBF    15:46:30 15:56:33   0       6

D:\ORACLE\SYSAUX01.DBF    15:36:30 15:46:30   0       2

D:\ORACLE\SYSAUX01.DBF    15:26:32 15:36:30   0      16

D:\ORACLE\SYSAUX01.DBF    15:16:31 15:26:32   1    2156

D:\ORACLE\SYSAUX01.DBF    15:06:32 15:16:31   0     314

D:\ORACLE\SYSAUX01.DBF    14:56:32 15:06:32   1     821

D:\ORACLE\SYSAUX01.DBF    14:46:30 14:56:32   0       0

 

Now that some of the new v$ views have been introduced, the next section will present information on changes to existing SQL related v$ views.

SEE CODE DEPOT FOR FULL SCRIPTS


This is an excerpt from my latest book "Oracle Tuning: The Definitive Reference". 

You can buy it direct from the publisher for 30%-off and get instant access to the code depot of Oracle tuning scripts:

http://www.rampant-books.com/book_1002_oracle_tuning_definitive_reference_2nd_ed.htm

 


 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

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