Database Tuning (MOSC)

MOSC Banner

How it difference between DBMS_STATS.GATHER_SCHEMA_STATS and DBMS_STATS.GATHER_TABLE_STATS?

edited Sep 27, 2012 7:33PM in Database Tuning (MOSC) 11 commentsAnswered
    Hi,

I trying to use DBMS_STATS to collect statistic on DB 9.2.0.8, I have existing statistic on DB by using "ANALYZE" command but the information not show in last_analyzed column in DBA_TABLES.

some statement has problem when I use  DBMS_STATS.GATHER_SCHEMA_STATS('USERNAME',estimate_percent=>20,cascade=>true,degree=>2,method_opt=>'for all columns size 1');

but for gather by table it work fine (DBMS_STATS.GATHER_TABLE_STATS) I used only some table in schema.

Could you please explain how difference?


Regards,
Nim.

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