Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> 10046 Trace and Oracle Time Machine
Hi all,
I am currently analyzing couple of trace files (10046^8) and tkprof
detected a hidden time machine in Oracle. This is for a simple query
(yes I know how to optimize this one, I have couple of ideas already,
but that's not the point right now) ....=20
call count cpu elapsed disk query current
rows
------- ------ -------- ---------- ---------- ---------- ----------
Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 47 (recursive depth: 1)
Rows Row Source Operation
------- ---------------------------------------------------942859 NESTED LOOPS (cr=3D6600178 r=3D903 w=3D0 time=3D90763563 us) 942859 TABLE ACCESS BY INDEX ROWID EPISODE_AVAIL_SUMMARY2 =
Elapsed times include waiting on following events:
Event waited on Times Max. Wait TotalWaited
What this tells me that the elapsed time for this query is roughly 67 years ... Before Oracle/Unix were invented ... And yet the whole process which contains this query finishes in roughly 3 hours. 9202, AIX 5.2, 2-node RAC. I have a tar open.=20
Does anyone have any clue as to what the heck is going on? I for one is completely clueless with this output, which I *somehow* think is wrong. Trace file is 3GB, compressed 260MB. Now I am off to write a query for the format "Select 'a_very_large_number from dual;", because OWS is going to ask me for a reproducible test case.
Nice start for a Monday ... Eh? TIA for ideas/jokes/rants/kudos/me-too's
Ps: found a new program for IE addicts, it is a oracle plug-in for
internet explorer ... http://www.dbmotive.com, looks cool, but I have no
interests in this company BTW.
Raj
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Mon May 24 2004 - 07:52:46 CDT