Dbms_stats.gather_table_stats does not update Stale Statistics
(Doc ID 2635511.1)
Last updated on JULY 20, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 12.2.0.1 and laterInformation in this document applies to any platform.
Symptoms
- The STATS on the table shows as STALE even after gathering the stats
- Used below commands to collect the stats:
exec dbms_stats.gather_table_stats(ownname=>'AAA',tabname=>'BBB',estimate_percent=>dbms_stats.auto_sample_size,degree=>dbms_stats.auto_degree,cascade=>TRUE);
exec dbms_stats.gather_table_stats('AAA','BBB',force=>TRUE)
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |