Hello
Can anybody send me a script that I can use to analyze all my indexes
at one time instead of doing it one index after the other? e.g
SQL> analyze index SCOTT.ORG_PK validate structure;
Index analyzed.
I want to be able to analyze all the indexs at once not just one at a time.
I don't have a script to do it, but there is a GUI tool that does this called EZSQL (www.ezsql.net, free for 30 days, $100 after that).
Under 'Tuning' there is an option called 'Index Storage'. Select the indexes you want, and click the button with an 'A' on it at the top. It will spool the results to a text file.
[QUOTE][i]Originally posted by pando [/i]
[B]select 'analyze index '||owner||'.'index_name||' validate structure;'
from dba_indexes
where owner <> 'SYS'; [/B][/QUOTE]
Hi does anyone know how to add this dynamic sql code into a pl/sql? And generate a text file?
Bookmarks