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

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL Tuning

Re: SQL Tuning

From: Martin Hepworth <maxsec_at_totalise.co.uk>
Date: 2000/02/17
Message-ID: <38ABB02C.986707F4@totalise.co.uk>#1/1

Samuel wrote:
>
> Hi! Can anyone give me some advices for tuning sql?
>
> I am using the explain plan to fine tune my designed sqls. The optimizer
> mode of my database is in CHOOSE base.
>
> The first it showed me that the cost value of the explain plan is null. It
> means that it used RBO. Then I try to give a all rows hint to this sql and
> re-create the explain plan. Now it showed me the cost value is 2490.
>
> How can I determine which one provide better performance?
>
> Many thanks
>
> Samuel

HI

I presume you've got timed_statistics = true in you init.ora? also you'll need to look at the actual elapsed time. I've seen cases where the 'cost' may be less using an index, but it results in a cartesian join which killed the response time the query went from 10mins to 4 hours!.

martin Received on Thu Feb 17 2000 - 00:00:00 CST

Original text of this message

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