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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Analyze Index and INDEX_STATS

Re: Analyze Index and INDEX_STATS

From: Sybrand Bakker <postmaster_at_sybrandb.demon.nl>
Date: Mon, 19 Jul 1999 18:10:08 +0200
Message-ID: <932400585.1361.0.pluto.d4ee154e@news.demon.nl>


Hi Dipen,
The answer is that Null keys are not stored in the index, which is in this case exactly what you want.
Validate structure addresses the physical structure only, not the logical.

Hth,

Sybrand Bakker, Oracle DBA

Dipen Kotecha <dkotecha_at_ford.invalid> wrote in message news:3793380B.F1397C07_at_ford.invalid...
> We have a field called CHANGED on a table, and it has only two values,
> '1' or NULL. When I use :
>
> SELECT index_name, distinct keys from user_indexes
> WHERE index_name = 'CHANGED_IDX';
>
> I get a value of 2 for the distinct keys, which is correct.
>
> But if I use ANALYZE INDEX CHANGED_IDX VALIDATE STRUCTURE;
>
> and then select distinct_keys from INDEX_STATS I get 934 for the same
> index!!
>
> Does the distinct_keys in INDEX_STATS refer to something else or am I
> doing something wrong?
>
> Any help would be greatly appreciated.
>
> Regards,
>
> Dipen Kotecha
Received on Mon Jul 19 1999 - 11:10:08 CDT

Original text of this message

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