Database Tuning (MOSC)

MOSC Banner

How to fins stale stats on partitioned tables (11g)

edited Jul 3, 2013 9:06AM in Database Tuning (MOSC) 1 commentAnswered
Hello,

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?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center