Really? Disabling all of the 9i and 9iR2 features in a 9.2.0.5
database doesn't matter? I would think otherwise.
> I run
> analyze index [index_name] validate structure;
Which doesn't populate anything.
> that returns Index analyzed, but the table does not populate.
See above.
> I've also tried running
> analyze index [index_name] compute statistics
Why are you still using the deprecated 'analyze index' command? You
should be using dbms_stats.gather_index_stats() to generate index
statistics. You should also be using dbms_stats.gather_table_stats()
in place of 'analyze table', and should you use CASCADE=TRUE in the
parameter list to gather_table_stats() you'll also generate your index
statistics.
> and then running the validate structure but still nothing.
Why do you insist upon executing 'analyze index .. validate
structure;'? What do you think this accomplishes other than validating
an already valid index?
> anyone know why?
The question is why are you *not* using the dbms_stats package?
> Thanks,
David Fitzjarrell
Running analyze index ... compute statistics ... has nothing to do
with your issue.
Anurag
Most likely Anurag's message solves your problem. If not, there's a
little possibility you're hitting Bug 4533389, although the bug report
only says 9.2.0.6.
(For David, analyze index validate structure does not collect optimizer
statistics. This is one of the few uses of analyze that dbms_stats
cannot replace.)
Yong Huang
The compatible setting is a whole nother issue that I need to find out
the ramifications for bumping it up in our system. I am aware that
there are quite a few features with 9i that I can't use due to this.
Anurag,
I did query the table in the same session that I analyzed the index in.
All the documentation that I could find in the manuals did at least say
that index_stats only holds one record while that session is still
active. I've tried all that I know what to do, but I can't seem to get
it to populate. I didn't know if there was maybe a package I had to run
first before it would work, or an ini parameter that allows this. Thank
you for the non-condescending reply, unlike others here.
Ben
Really? It does every time I use it.
Then its possible you might be hitting some bug as Yong suggested.
You would have to open an iTar for it....
One last thing I wanted to point out:
analyze index .... validate structure ONLINE;
will not populate index_stats at least until 10.1.0.2
(although you do not state using this option .. I thought I'd point
this out).
while analyze index ... validate structure;
should populate index_stats .. or fail with an error if
the index structure is not valid (corrupt).
Anurag
David Fitzjarrell