vike681 发表于 2018-9-24 07:21:48

ORACLE 中dbms_stats的使用

  --**************************************************************
  -- REPEAT OPTION - Only reanalyze histograms for indexes
  -- that have histograms
  --
  -- Following the initial analysis, the weekly analysis
  -- job will use the “repeat” option. The repeat option
  -- tells dbms_stats that no indexes have changed, and
  -- it will only reanalyze histograms for
  -- indexes that have histograms.
  --**************************************************************
  begin
  dbms_stats.gather_schema_stats(
  ownname          => 'SCOTT',
  estimate_percent => dbms_stats.auto_sample_size,

  method_opt       => 'for all columns>  degree         => 7
  );
  end;

页: [1]
查看完整版本: ORACLE 中dbms_stats的使用