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 


 

 

 


 

 

 
 

Oracle10g Time Model v$ Views

Oracle Tips by Burleson Consulting

 

Oracle10g Time Model v$ Views

 

Oracle10g introduces a time modeling approach that allows the DBA to have a single scale by which to compare statistics in terms of time. Oracle10g measures cumulative processing times for the following database operations:

§       DB CPU

§       DB time

§       Java execution elapsed time

§       PL/SQL compilation elapsed time

§       PL/SQL execution elapsed time

§       Background CPU time

§       Background elapsed time

§       Connection management call elapsed time

§       Failed parse (out of shared memory) elapsed time

§       Failed parse elapsed time

§       Hard parse (bind mismatch) elapsed time

§       Hard parse (sharing criteria) elapsed time

§       Hard parse elapsed time

§       Inbound PL/SQL rpc elapsed time

§       Parse time elapsed

§       Sequence load elapsed time

§       SQL execute elapsed time

There are two time model statistic v$ views available: v$sess_time_model displays accumulated times per session basis; and v$sys_time_model shows system-wide cumulative processing times.

 

The time reported in both views is expressed in microseconds and represents the total elapsed or CPU time of operations. Background processing times are not computed for cumulative times except for statistics such as background CPU time and background elapsed time.

 

The most important statistics within the time model views are DB time and DB CPU. The DB time statistic in the v$sess_time_model view determines the total elapsed processing time spent by database for a particular session. The same statistic in the v$sys_time_model view represents the total cumulative time spent by Oracle for all sessions’ CPU times and wait times spent for non-idle wait events. Therefore, the system-wide DB time can exceed the elapsed time since the last instance startup.

 

One great benefit of using the v$sess_time_model view is that it allows the quick identification of what part of the session’s processing work spends most time. If a user is complaining about poor response times, once the SID for the user session has been grabbed, a query like sess_waits_ash.sql can be used to find out exactly what areas of work are causing the degradation:

 

<      sess_waits_ash.sql

 

SELECT  b.username,

        a.stat_name,

        round((a.value / 1000000),3) time_secs

FROM    v$sess_time_model a,

        v$session b

WHERE   a.sid = b.sid AND

        b.sid = 123

ORDER BY 3 DESC

 

The sample output looks like the following:

 

USERNAME   STAT_NAME                                       TIME_SECS

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

SPV        DB time                                            23,133

SPV        sql execute elapsed time                            6,035

SPV        DB CPU                                              3,399

SPV        parse time elapsed                                  3,205

SPV        hard parse elapsed time                             2,976

SPV        connection management call elapsed time              ,168

SPV        background elapsed time                                 0

SPV        PL/SQL execution elapsed time                           0

SPV        PL/SQL compilation elapsed time                         0

SPV        Java execution elapsed time                             0

SPV        inbound PL/SQL rpc elapsed time                         0

SPV        hard parse (bind mismatch) elapsed time                 0

SPV        background cpu time                                     0

SPV        failed parse elapsed time                               0

SPV        hard parse (sharing criteria) elapsed time              0

SPV        failed parse (out of shared memory) elapsed time        0

SPV        sequence load elapsed time                              0

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