Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: cpu time and query column in tkprof output

RE: cpu time and query column in tkprof output

From: Martic Zoran <zoran_martic_at_yahoo.com>
Date: Thu, 3 Feb 2005 02:55:06 -0800 (PST)
Message-ID: <20050203105506.35941.qmail@web52602.mail.yahoo.com>


Hi Yasin,

These are LATCH stats and not STAT stats.

Latch statistics are very important to predict which SQL will behave better when running in multiuser environment, with many processes doing the same or similar SQL's causing them to wait/lock/block on these latches.

Stats are showing more about what you needed to perform and partially on what you spend your pure CPU time.

Your first SQL can be faster but it is less scalable and can cause ELAPSED time to be worse if you have very busy system.

You should test it in real case scenario while having other things running (ideally the production :)

Regards,
Zoran

> Here are all the stats. Yes the execution plans are
> different. What i am
> trying to do is to re-write the sql for better
> performance. I re-write
> the sql ang get lower number of logical reads, but
> lose in other areas
> as i mentioned.
>
> So, by looking at the following stats and cpu time
> and elapsed time, i
> understand that i should stick with the original sql
> as the new sql
> performs worse.
>
> NAME
> RUN1 RUN2
> DIFF
> --------------------------------------------------
> ---------- ----------
> ----------
> LATCH.job_queue_processes parameter latch
> 1 0
> -1
> LATCH.ktm global data
> 0 1
> 1
> LATCH.ncodef allocation latch
> 1 0
> -1
                



Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250
--
http://www.freelists.org/webpage/oracle-l
Received on Thu Feb 03 2005 - 05:57:44 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US