SQL Access Advisor!

warehouse發表於2008-11-12

doc的原話,隨手記錄!

The SQL Access Advisor's recommendations are significantly improved if you gather structural statistics about table and index cardinalities, and the distinct cardinalities of every dimension level column, JOIN KEY column, and fact table key column. You do this by gathering either exact or estimated statistics with the DBMS_STATS package. Because gathering statistics is time-consuming and extreme statistical accuracy is not required, it is generally preferable to estimate statistics. Without these statistics, any queries referencing that table will be marked as invalid in the workload, resulting in no recommendations being made for those queries. It is also recommended that all existing indexes and materialized views have been analyzed. See Oracle Database PL/SQL Packages and Types Reference for more information regarding the DBMS_STATS package.

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/19602/viewspace-1013253/,如需轉載,請註明出處,否則將追究法律責任。

相關文章