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: SQL Cost Compared To Elapsed Time

Re: SQL Cost Compared To Elapsed Time

From: Ethan Post <post.ethan_at_gmail.com>
Date: Wed, 19 Apr 2006 10:02:01 -0500
Message-ID: <357b48a90604190802v2b8f96bcg2e2ef6db4be86659@mail.gmail.com>


Thanks, another poster also caught my error with the cost.

The original post about this mentioned not using the SQL without tuning per JL's advice from Hotsos 2006 conf., but I just wanted to get the quick dirty version out there so I have not looked at that yet. Thanks for the tips!

On 4/19/06, Wolfgang Breitling <breitliw_at_centrexcc.com> wrote:
>
> Interesting approach. A correction to your script, though. Cost in
> v$sql_plan
> (as in plan_table) is cumulative, so you should just take the top value
> (id=0)
> rather summing all the costs. Also, you should use v$sql rather than
> v$sqlarea
> (courtesy Jonathan L.):
>

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Apr 19 2006 - 10:02:01 CDT

Original text of this message

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