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)

相关推荐
betazhou3 小时前
Apache Seatunnel 抽取SQL server实时同步到Oracle-多表同步(五)
数据库·oracle·sqlserver·apache·seatunnel
love静思冥想4 小时前
CLOB中JSON查询agent字段值(Oracle11g)
sql·oracle·json
jnrjian6 小时前
Oracle TDE 大小钥匙 HSM DEK 与 EDB key.bin
数据库·oracle
猫咪很可爱7 小时前
Oracle Data Pump 导入报错 ORA-02375:字符集不一致问题分析与处理
数据库·oracle
梦影_8 小时前
MySQL进阶教程(二)—— 储存过程与触发器(下)
开发语言·数据库·后端·sql·mysql·oracle·数据库开发
小羊没烦恼!18 小时前
铁道部新客票系统设计(二)
开发语言·前端·数据库·python·oracle·c#·php
Leon-Ning Liu1 天前
Oracle参数对比脚本分享:对比 SPFILE 参数与内存参数差异,支持 11g 到 19c
数据库·oracle
远方16091 天前
118-五大进程LGWR DBWn CKPT SMON PMON 与存储故障-文件系统对照
大数据·数据库·sql·oracle·database
远方16091 天前
119-Oracle CDB 下修改和重置 SYS SYSTEM密码记录
大数据·数据库·sql·oracle·database
库库的数据库笔记2 天前
金融核心交易系统的数据库国产信创改造该如何做?
大数据·数据库·分布式·mysql·oracle·金融·数据库架构