Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the difference between DBMS_STATS and ANALYZE?

analyze dbms_stats difference
0
Posted

What is the difference between DBMS_STATS and ANALYZE?

0

DBMS_STATS is a more recent method for creating statistics that is expected to replace ANALYZE in the long term. You can observe the following differences when using DBMS_STATS instead of ANALYZE: * Advantages of DBMS_STATS: o It is possible to use histograms for global statistics of partitioned objects o Table-internal parallel processing is possible (Note 408532) o Correct statistics even for columns with identical character strings in the first 32 characters (Note 365480) o You can transport statistics to other systems o You can back up and reactivate statistics * Disadvantages of DBMS_STATS: o DBMS_STATS only determines statistical data that is relevant to CBO. For monitoring purposes, the system does not calculate useful columns such as AVG_SPACE, EMPTY_BLOCKS, AVG_SPACE_FREELIST_BLOCKS or NUM_FREELIST_BLOCKS. As a result, you cannot make assertions about space utilization and fragmentation on the basis of this value with DBMS_STATS statistics, for example. o No statistics for clu

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123