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$eventmetric

Oracle Tips by Burleson Consulting

 

The v$eventmetric reports wait metrics as the number of sessions waiting during the sample interval, the number of waits, and the wait time. This view contains a single row per every wait event. The following metric_by_time.sql query returns a list of non-idle wait events that recently experienced the most wait time:

 

            metric_by_time.sql

 

SELECT

   to_char(m.begin_time,'hh24:mi') "start time",

   to_char(m.end_time,'hh24:mi')   "end time",

   n.name,

   m.time_waited,

   m.num_sess_waiting,

   m.wait_count

FROM

    v$eventmetric m,

    v$event_name  n

WHERE

      m.event_id = n.event_id

  AND n.wait_class <> 'Idle'  -- add your event metric name here

  AND m.time_waited > 0

ORDER BY 4 DESC;

 SEE CODE DEPOT FOR FULL SCRIPTS

 

The following output has a breakdown, by time, of all of the wait events and the counts of the number of times waited during the AWR snapshot period:

 

start end t NAME                       TIME_WAITED NUM_SESS_WAITING WAIT_COUNT

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

17:29 17:30 control file parallel write         29                0         19

17:29 17:30 latch free                           4                0          8

17:29 17:30 db file parallel write               1                0          7

 

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