对一个schema下所有对象的进行统计分析
dbms_stats.gather_schema_stats(ownname=> 'trade',estimate_percent => dbms_stats.auto_sample_size,method_opt=> 'for all columns size repeat',degree=>4);
对一张表进行统计分析
dbms_stats.gather_table_stats(ownname=>'trade', tabname=>'THISTRADESTOCK',degree => 4,cascade => true);