GATHER_FULL_STATS_JOB oracle自动收集统计信息 options => ‘gather‘

并行参数最好指定

Applies To

All Users

Summary

  • High load is associated with stats jobs for each schema that run from the scheduler
  • Job is running at the same time as the staggering of start times is not large enough
  • Each schema has a job to connect full stats as follows:
    GATHER_FULL_STATS_JOB
    begin dbms_stats.gather_schema_stats (ownname => '',
    method_opt => 'for all columns size auto',
    estimate_percent => 100,
    cascade => true,
    degree=> DBMS_STATS.DEFAULT_DEGREE,
    options => 'gather'); end;
  • There are many queries in AWR showing following:
    select /*+ parallel_index(t, "_IDX1", 384) dbms_stats cursor_sharing_exact use_weak_name_resl dynamic_sampling(0) no_monitoring xmlindex_sel_idx_tbl opt_param('optimizer_inmemory_aware' 'false') no_substrb_pad no_expand index_ffs(t, "_IDX1") */ count(*) as nrw, count(distinct sys_op_lbid(364661, 'L', t.rowid)) as nlb, count(distinct "SYS_NC00015$") as ndk, sys_op_countchg(substrb(t.rowid, 1, 15), 1) as clf from...

Solution

This is an expected feature.

By design, when using default_degree option, it is limited to current environment settings. This option is fully controlled by the number of CPUs and initialize parameters and the size of the object that are collecting statistics for.

The 384 value in general is dynamic, so the full value is usually not used.

Attachments :

Cause

Degree=> DBMS_STATS.DEFAULT_DEGREE translates inside the code to ===> GATHER_TABLE_STATS(... degree => 32768)

相关推荐
ClouGence9 天前
Oracle 数据同步为什么会出现数据不一致?长事务是常被忽略的原因
数据库·后端·oracle
ClouGence15 天前
Oracle CDC 架构优化:从主库直连到 DataGuard 备库同步
数据库·后端·oracle
曹牧16 天前
Oracle EXPLAIN PLAN
数据库·oracle
贤时间16 天前
codex 助力oracle ebs 开发
数据库·oracle
秉承初心16 天前
PostgreSQL 数据性能瓶颈突破实战
数据库·postgresql·oracle
Curvatureflight16 天前
MySQL 深分页越来越慢?从 LIMIT OFFSET 改成游标分页
数据库·oracle
XZ-07000116 天前
MySQL事务
数据库·mysql·oracle
tiancaijiben16 天前
阿里云函数计算FC如何实现网站的定时任务与自动化
数据库·oracle·dba
xfhuangfu16 天前
Oracle 19c 多租户体系架构介绍
数据库·oracle·架构
杨云龙UP16 天前
Spotlight 接入 Oracle 数据库监控操作指南 2026-06-16
数据库·oracle·性能监控·预警·阈值·spotlight·瓶颈分析