on 09-23-2010 2:16 PM
Hi Community,
today I observed somthing strange when I rebuild an Index. Before I started the Index Rebuild I checked in DB02 the Index details where a number of "Distinct keys" are reported.
Next I started Index Rebuild using DB02 - once finished I checked again the details of the related Index and I found the number of Distinct key plus "some" additional. The related was Index COEJ~1 which had before rebuild 404.000 distinct keys .... and after rebuild 46.000.000 - That sounds strange to me because I was using the System exclusivly - Up to now I thought distinct means distinct - but now ?
Does anybody have a clue what DB02 index details means with "distinct key" and of course why they change that dramatically after index rebuild?
Kind regards
Alex
Alexander,
The only authoritative source is the Oracle catalog. Next time you rebuild an index, check the statistics before and after:
select last_analyzed, distinct_keys from dba_indexes
where index_name = '<name>';
The only explanation I can imagine is, as the previous respondent pointed out, that the statistics were very old ("old" in the sense that the table had undergine drastic changes since the stats were last updated, e.g. a large data load).
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
that value is a database statistics value and might before have been very old.
The stats may have been recreated / recalculated after the new creation.
Volker
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.