dataiotech Labs
dbaguide.com · Senior DBA & SRE Diagnostic Standard v2.0
Home/Error Library/ORACLE/oracle-perf-ora-cat-16-bind-peeking-skew-on-histogram-column
Oracle
Oracle 19c, 26aiSEVERITY: P1 HIGH
6 min read
Bind Peeking Skew on Histogram Column [Optimizer Condition]

Optimizer Condition · Bind Peeking Skew on Histogram Column

An optimizer condition occurring when a SQL statement using bind variables against a skewed column with a histogram peeks at an atypical bind value during initial hard parse, locking subsequent executions with very different selectivity into an unsuitable plan until Adaptive Cursor Sharing (ACS) promotes the cursor to bind-aware or reparse occurs.

Reviewed by:Senior Oracle DBA (dataiotech Labs)

Diagnostic Disambiguation Matrix

When It Occurs

Verified operational error scenario under Oracle 19c, 26ai: An optimizer condition occurring when a SQL statement using bind variables against a skewed column with a histogram peeks at an atypical bind value during initial hard parse, locking subsequent executions with very different selectivity into an unsuitable plan until Adaptive Cursor Sharing (ACS) promotes the cursor to bind-aware or reparse occurs.

When This Is NOT The Error

Not an error belonging to an external database engine or unrelated subsystem; native to this catalog.

First 60 Seconds Emergency Protocol (Read-Only Safety Rule):

The error string is a symptom, not the root cause. Do not restart database servers blindly! Execute the read-only diagnostic queries below to determine the actual failure mode before attempting session terminations or configuration changes.

NOTE
Entry Type (ORA-CAT-16): Optimizer Condition Licensing Requirement: Core Oracle Database (EE & SE2) — no extra pack required. · Required Privileges: SELECT on V$SQL, V$SQL_CS_SELECTIVITY, DBA_TAB_COL_STATISTICS; EXECUTE on DBMS_XPLAN

▸1. Description & Context

An optimizer condition occurring when a SQL statement using bind variables against a skewed column with a histogram peeks at an atypical bind value during initial hard parse, locking subsequent executions with very different selectivity into an unsuitable plan until Adaptive Cursor Sharing (ACS) promotes the cursor to bind-aware or reparse occurs.

Severity Context: High — Produces intermittent "fast yesterday, slow today" plan flips whenever cursors reparse with different initial bind values.

▸2. Possible Causes (Confirm Root Cause via Evidence)

  • •Possible cause (must be verified): Cursor aging out or invalidation followed by a reparse peeking an unusually popular or unusually rare bind value.
  • •Possible cause: ACS remaining in IS_BIND_SENSITIVE='Y' before promoting to IS_BIND_AWARE='Y', or complex predicates preventing ACS promotion.
  • •Possible cause: Unnecessary histograms on columns where a single stable access path is universally optimal.

▸3. Read-Only Diagnostic Steps

  1. 1Query V$SQL for CHILD_NUMBER, PLAN_HASH_VALUE, IS_BIND_SENSITIVE, IS_BIND_AWARE, and IS_SHAREABLE on the target SQL_ID.
  2. 2Inspect peeked bind values via DBMS_XPLAN.DISPLAY_CURSOR(sql_id, child_no, 'TYPICAL +PEEKED_BINDS').
  3. 3Review HISTOGRAM type in DBA_TAB_COL_STATISTICS and selectivity buckets in V$SQL_CS_SELECTIVITY.
sql
-- ORA-CAT-16 | Core Oracle Database (EE & SE2) — no extra pack required. | Syntax-Reviewed (Not Runtime-Tested) -- READ-ONLY | License-free core V$ view SELECT sql_id, child_number, plan_hash_value, is_bind_sensitive, is_bind_aware, is_shareable, executions, ROUND(buffer_gets/GREATEST(executions,1), 1) AS avg_lio FROM v$sql WHERE sql_id = '&target_sql_id' ORDER BY child_number;

▸4. Controlled Remediation Options

  • •If one plan performs well across all bind values, enforce it with a SQL Plan Baseline or suppress unnecessary histograms via table-level METHOD_OPT preferences.
  • •If distinct bind values genuinely require distinct plans, verify ACS behavior or separate extreme-skew low-cardinality branches in SQL.
  • •For urgent stabilization, register the good SQL Plan Baseline and purge only the bad cursor via DBMS_SHARED_POOL.PURGE.

▸5. Related Terms & References

NEW CONCEPTENGINEERING MASTERY
Senior Interview Ready

ORACLE Diagnostic Standards, Operational Reliability, and Interview Readiness.

This error is not merely a config typo; it is a lesson in consistency models, concurrency architectures, and capacity planning.

Measurable Learning Objectives:
  • Articulate error symptoms, distinguishing diagnostics, and safe recovery steps.
  • Implement architectural safeguards to permanently eliminate root causes.

What Senior Interviews Ask About This Error?

Q1When this error (Bind Peeking Skew on Histogram Column [Optimizer Condition]) surfaces in production, what must be inspected within the first 60 seconds?
Mid
Senior Engineer & Architect Response:

Before restarting servers blindly, inspect active sessions, locks, and recent engine logs to identify the true failure mode.

Q2Which metrics should be integrated into alerting to prevent recurrence of this issue?
Senior
Senior Engineer & Architect Response:

Set up early warning metrics targeting connection pools, memory grants, disk headroom, or lock queues with actionable thresholds.

Q3How should applications defensively guard against this database failure?
Junior
Senior Engineer & Architect Response:

Implement idempotent retry loops with backoff, strict query timeouts, verified connection pool bounds, and structured error logging.

Senior DBA & SRE Career Roadmap

Explore database reliability milestones, incident response protocols, and architectural leadership.

View Roadmap

More ORACLE Diagnostic Playbooks

Battle-tested triage guides for production incidents.

View All
dbaguide.com · Optimizer Condition: Bind Peeking Skew on Histogram Column · Kanıt Odaklı Teşhis Standardı
Last Updated: November 2, 2026 · Format v2.0