Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> elapsed time less cpu time???
Oracle 9.2 on Solaris 9
In response to a developer's complaint that a query suddenly went south, I ran the query w/ sql_trace=true then fed the resulting trace file to TKPROF. An interesting result was that on the fetch phase, the cpu time was 0.51 seconds, while the elapsed time was 0.44 sec. Sonds like a house that's bigger on the inside than on the outside.
Here's the TKPROF report. Sorry about the line wraps. If someone can tell me how to prevent that, as well, I'd be grateful. (I'm using Free Agent as my newsreader)
The rest of the report, including the access plan, looks pretty good to me. If someone wants to disabuse me of that notion, I won't mind being further educated.
TKPROF: Release 9.2.0.1.0 - Production on Fri Nov 14 08:16:37 2003
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Trace file: cmdm1240_ora_13714.trc
Sort options: default
<snip>
select POSTED_NAME,
WORK_ORDER_NUMBER, SITE_ID, GL_ACCOUNT, WBS_ELEMENT, COST_CENTER, SUMMARY_COST, TOTAL_COST
Misses in library cache during parse: 1
Optimizer goal: CHOOSE
Parsing user id: 5
Rows Row Source Operation
------- ---------------------------------------------------20000 TABLE ACCESS BY INDEX ROWID POSTED_SUMMARY 20000 INDEX RANGE SCAN PK_POSTED_SUMMARY (object id 23873)