If you analyze tables with COMPUTE option, it will also analyze indexes.
In general, I use either dbms_utility.analyze_schema or dbms_utility.analyze_database to calculate my statistics. There is also a procedure called gather_database_stats in the dbms_stats package that you can use to gather your stats in parallel. http://technet.oracle.com/docs/produ...tats.htm#25656
I have emp_idx1, emp_idx2 is there on the EMP table.So the above anlyze command will analyze the SCOTT.EMP
indexes also. I am right. Just i am trying to make sure. Thanks
Because i have two databases. On one i am running analyze command on all tables with compute statistics and another one i am exec the analyze_schema procedure.
The same sql code is accessing this two databases. Is there possible to go wrong. I mean is there chances to dicrease the performance. Thanks.
The size of the tables are almost same. The structure is same.
Bookmarks