sqlplus / as sysdba <set linesize 200 pagesize 999
set long 99999 longc 99999
set timing on
set time on
set echo on
spool gather_xxx.log
exec DBMS_STATS.GATHER_SCHEMA_STATS(ownname=>'xxx',ESTIMATE_PERCENT=>dbms_stats.auto_sample_size,method_opt=>'for all columns size 1',cascade=>true,force=>true,degree=>32);
spool off
exit
阅读(1335) | 评论(0) | 转发(0) |