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
今天的生活是由3年前决定的,但是如果你今天还过着和3年前一样的生活,3年后你一样得这样过着。生活不是用来重复的。
浙公网安备 33010602011771号