You have to analyze all USER tables and indexes in your database. You can do this usingOriginally posted by V6163
3. Out of 700 tables in my database, I have analyzed only 10 tables, which are the main tables.
This will enable the database engine when using the COST based optimizer to get accurate statistics to choose the best plan. This is with reference to what you mentioned about the Cost based optimizer being used when even one table is analyzed in a query (All tables in the query must be analyzed).Code:execute dbms_utility.analyze_schema('SCHEMA_NAME', 'COMPUTE');
HTH.




Reply With Quote