DBMS_STATS.GATHER

DBMS_STATS.GATHER_TABLE_STATS
exec dbms_stats.gather_table_stats(ownname=>'user',tabname=>'table_name',estimate_percent=>5,cascade=>true)

例:exec dbms_stats.gather_table_stats (ownname => 'tscn_da', tabname => 'tmp_cn_analysis', estimate_percent => 100, cascade => true);

DBMS_STATS.GATHER_SCHEMA_STATS
exec dbms_stats.gather_schema_stats(ownname =>'user', estimate_percent =>5,cascade=>true, degree=>5)degree是并行度。

DBMS_STATS.GATHER_DATABASE_STATS

posted on 2012-05-24 13:18  kinddevil  阅读(258)  评论(0)    收藏  举报