What is the preferred way of reverting back to using the analyze command for updating statistics once dbms_stats has been executed on the tables?

    Requires Free Membership to View

If you are on Oracle 8i and beyond, you should always use dbms_stats to collect statistics. The "analyze table" command is ancient from Oracle 7, and it gives really bad statistics, especially for partitioned tables, et cetera. By the way, if you want to save schema statistics, use the dbms_stats.export_schema_stats procedure. Here is a good link: http://www.dba-oracle.com/art_orafaq_cbo_stats.htm

This was first published in October 2004

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.