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: Unique index not being used, up to date stats

Re: Unique index not being used, up to date stats

From: Robert Klemme <shortcutter_at_googlemail.com>
Date: Fri, 26 Jan 2007 16:07:52 +0100
Message-ID: <51ujprF1lmbtmU1@mid.individual.net>


On 26.01.2007 16:02, Ben wrote:
> Yeah, I use
> dbms_stats.gather_schema_stats(
> ownname => 'PRODDTA',
> cascade => true,
> degree => 6,
> options => 'GATHER STALE');
>
> This runs every weekend, and the table in question & indexes were
> analyzed this past weekend.

One more idea: did you verify that the data actually meets your expectations? You could do

select sum(case when wadoco >= 11723420 then 1 else 0 end) "selected" , sum(case when wadoco >= 11723420 then 0 else 1 end) "not selected" FROM proddta.f4801

to make sure that your idea of the data matches reality.

Are there any stored outlines (stored plans) around?

Kind regards

        robert Received on Fri Jan 26 2007 - 09:07:52 CST

Original text of this message

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