<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Dba_tab_col_statistics on Oracle Scripts</title><link>https://www.oraclescripts.com/tags/dba_tab_col_statistics/</link><description>Recent content in Dba_tab_col_statistics on Oracle Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>OracleScripts.com</copyright><lastBuildDate>Thu, 12 Dec 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://www.oraclescripts.com/tags/dba_tab_col_statistics/index.xml" rel="self" type="application/rss+xml"/><item><title>Oracle Statistics Gathering with DBMS_STATS Explained</title><link>https://www.oraclescripts.com/post/understanding-oracle-database-statistics-gathering-using-dbms-stats-a-comprehensive-guide/</link><pubDate>Thu, 12 Dec 2024 00:00:00 +0000</pubDate><guid>https://www.oraclescripts.com/post/understanding-oracle-database-statistics-gathering-using-dbms-stats-a-comprehensive-guide/</guid><description>
&lt;h2 id="understanding-oracle-database-statistics-gathering-a-comprehensive-guide"&gt;Understanding Oracle Database Statistics Gathering: A Comprehensive Guide&lt;/h2&gt;
&lt;h2 id="purpose"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;DBA_TAB_STATISTICS&lt;/code&gt; is the view that shows what the optimizer knows about each table: the number of rows, the average row length and the number of data blocks. &lt;code&gt;DBMS_STATS&lt;/code&gt; is the package that fills those numbers in. The optimizer reads them to estimate how many rows a step will return. Then it picks the plan with the lowest cost. If the numbers are wrong or old, the estimates are wrong, and the plan can be slow.&lt;/p&gt;</description></item></channel></rss>