Q
Manage Learn to apply best practices and optimize your operations.

When to use the Oracle ANALYZE command and how to avoid complications

An expert explains when and how the Oracle ANALYZE command should be used and provides examples to help you avoid complications when using the command.

Are there any "side effects" associated with using the Oracle ANALYZE command?

The book that I am reading mentions what this command does and it provides a few good examples, but it does not...

mention possible complications of running the command and under what conditions the command should not be used.

You did not specify your version, but if you are using Oracle 10g and higher, then you should use the DBMS_STATS package to calculate Optimizer Statistics. The ANALYE command should only be used to do things like LIST CHAINED ROWS. The DBMS_STATS package is much more robust for Optimizer Statistics and replaces the ANALYZE command for this functionality.

This was last published in August 2008

Dig Deeper on Oracle database administration

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide.com

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close