My Oracle Support Banner

In tkprof output why elapsed time is not equal to (cpu time + wait time) (Doc ID 730825.1)

Last updated on APRIL 09, 2020

Applies to:

Oracle Database - Enterprise Edition - Version 8.1.7.0 and later
Information in this document applies to any platform.

Goal

NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product.  Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.

In the following Tkprof output :

select count(*)
from
smvt


call count cpu elapsed disk query current rows
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.00 0 0 0 0
Fetch 2 4.93 10.42 27639 27639 352 1
------- ------ -------- ---------- ---------- ---------- ---------- ----------
total 4 4.93 10.42 27639 27639 352 1

...

Rows Row Source Operation
------- ---------------------------------------------------
1 SORT AGGREGATE
12454917 INDEX FAST FULL SCAN (object id 5286)


Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
..
db file scattered read 1728 0.10 6.85




Please clarify following issue


CPU time : 4.93
Elasped Time :10.42
Wait Time :6.85 (due to db file scattered read)

Why elaspsed time!= (cpu time + wait time).


Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.