How to fins stale stats on partitioned tables (11g)
I have a script (see below) which looks for stale stats using the LIST STALE option of dbms_stats.gather_database_stats.
It seems that it is only showing stale stats for tables as a whole. Meaning, a large partitioned table may show as only 5% stale
when in realicity, there is 1 partition that is 90% stale.
WHen I view the staleness in grid control, I can see the individual partitions and whether they are stale or not.
How would I run a list stale check which will also show each partition? How is grid showing staleness on the table AND partition level?