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)

相关推荐
杨凯凡2 天前
IT日报|2026-11-19:Oracle Java 紧急补丁、Optimizely 供应链攻击、GitHub 安全评估升级
java·oracle·github
OxYGC3 天前
[Web3] 智能合约 13: 项目实战⑤ DappLink Oracle
oracle·web3·智能合约
Lucifer三思而后行4 天前
Oracle RAC 启动失败,DBA 如何一步步定位问题?
oracle·rac
tianyuanwo5 天前
NocoDB 系统手册:PostgreSQL 主机资产管理的界面层实施方案
数据库·postgresql·oracle
隔窗听雨眠8 天前
Oracle日志体系分层结构与故障定位路径
数据库·oracle·故障排查
曲径海盗9 天前
Try-Except怎么用,3个追问解答在自动化下的应用
java·jvm·oracle
爱吃奥利奥_wen12 天前
SQL Server 基础语法详解:从建库建表到约束与增删改查
服务器·数据库·oracle
x_SpiderMan12 天前
搭建Oracle RAC 集群
数据库·oracle
测试界的小码农12 天前
【图数据库实战进阶(03):Neo4j 图数据建模实战——节点、关系与属性应该怎么设计?】
数据库·oracle·neo4j
.痞老板.12 天前
mysql初阶--数据库设计
数据库·mysql·oracle