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)

相关推荐
weixin_523185321 小时前
达梦数据库事务机制踩坑:默认不自动提交事务
数据库·oracle
云絮.2 小时前
数据库约束
java·数据库·sql·mysql·oracle
阿演17 小时前
DataDjinn 新版本更新:新增 Oracle 支持,查询窗口、表预览和连接树继续打磨
数据库·oracle·ai编程·数据库连接工具
lixora18 小时前
Oracle 11g Active Data Guard Go 自动化部署工具 v1.0
数据库·oracle
mN9B2uk1718 小时前
大数据量高并发的数据库优化
服务器·数据库·oracle
蓝鸟197421 小时前
Oracle超大DMP备份文件瘦身、日志精简、磁盘空间优化实战方案日志
数据库·oracle·数据库运维·生产运维实战·oracle避坑·磁盘空间优化·oracle日志清理
asdfg12589631 天前
一文通俗理解JDBC中的核心概念+案例
java·数据库·oracle·jdbc
折哥的程序人生 · 物流技术专研1 天前
Tomcat 严重警告:JDBC 驱动未注销 + 工作线程泄漏 —— 原因、影响与彻底修复(生产级终极指南)
java·运维·数据库·mysql·oracle·tomcat
闪电悠米1 天前
黑马点评-Redis 消息队列-04_stream_seckill_order
数据库·redis·分布式·缓存·oracle·junit·lua