Oracle Foundation Analysis Table

Source: Internet
Author: User

Analyze table TableName compute statistics;


Analyze index IndexName compute statistics;

(Analyze does not rebuild the index)

When you encounter a query or other performance that is not good for the current table, you can analyze the corresponding table once.

1. If your table is often changed from tens of millions of to millions of and then to tens of millions of, then you need to make analysis plan periodic Table analysis, and you can analyze the index together, calculate the distribution of the data in the index, so the CBO will choose more accurate execution plan.

2. If the table structure changes and is also to be done, that is, often DML on the table needs to be analyzed, it is now recommended to use the Dbms_stats package.

The purpose of the analysis tables and indexes is to generate a better query plan for the results of the analysis by using Oracle for cost-based optimization.

Oracle Foundation Analysis Table

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.