Database Tuning (MOSC)

MOSC Banner

11g stale stats question

edited Jul 13, 2013 2:06PM in Database Tuning (MOSC) 15 commentsAnswered
Hello,
I am currently using the command dbms_stats.gather_database_stats(OPTIONS=>'LIST STALE' ...   to get a list of tables with stale stats.
As I unserdtand it, it used a hard coded a 10% threashold value.

My question is, is there a way to use 5% as the threashold? (ie. list all tables with 5% or more change)

I did find the following:
DBMS_STAT.set_table_prefs('SH','SALES','STALE_PERCENT',5);


but it sounded like this is only used by the automatic stats gathering??? or would my
dbms_stats.gather_database_stats(OPTIONS=>'LIST STALE' ...  command also utilize the new percentage?

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