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)

相关推荐
煮煮论英雄14 小时前
单文件部署的MQTT轻量级物联网数据平台
jvm·物联网·oracle
蓝鸟197414 小时前
Python Flask + Oracle 接口开发 小白完整版笔记(入参/查库/批量/JSON/避坑)
python·oracle·flask
2601_9673387114 小时前
Text2SQL智能体基础到实战课程
数据库·oracle
祢真伟大15 小时前
Oracle含LOB大字段表的存储占用统计
数据库·oracle
严同学正在努力16 小时前
Oracle数据技术运维大全(下篇)
运维·数据库·ai·oracle·架构
Irene199116 小时前
FROM DUAL UNION ALL 是 Oracle 特有的写法,专门用来在 SQL 中手工构造一个固定的多行数据集(即“行值构造函数”)。
oracle·行值构造函数
cqsztech2 天前
Oracle ai database 26ai rac 通过gold image 更新季度补
数据库·人工智能·oracle
cqsztech2 天前
银河麒麟v11下 19c noncdb升级到 26ai
oracle
杨云龙UP3 天前
Oracle 19c RMAN历史备份清理失败:CONTROL_FILE_RECORD_KEEP_TIME 问题排查与整改实战
linux·运维·网络·数据库·oracle·rac
疯狂打码的少年3 天前
【数据库技术】SQL概述与数据定义(DDL:CREATE/DROP/ALTER)
数据库·笔记·sql·oracle