dataiotech Labs
Home/Glossary/SQL_ID
SQL_IDOptimizer & Execution Plans

SQL_ID

A 13-character deterministic hash identifier derived from the exact text of a SQL statement in Oracle Database. Identical SQL text (including whitespace and case) produces the same SQL_ID across instances and releases. It serves as the primary correlation key across V$SQL, V$SQLSTATS, V$SQL_PLAN, DBA_HIST_SQLSTAT, and DBMS_XPLAN diagnostics.

Internal Architecture Breakdown

A 13-character deterministic hash identifier derived from the exact text of a SQL statement in Oracle Database. Identical SQL text (including whitespace and case) produces the same SQL_ID across instances and releases. It serves as the primary correlation key across V$SQL, V$SQLSTATS, V$SQL_PLAN, DBA_HIST_SQLSTAT, and DBMS_XPLAN diagnostics.

Applicable Versions: Oracle 19c, 26ai Related Terms: Plan Hash Value, Child Cursor, Execution Plan, SQL Monitoring Canonical Glossary ID: ORA-GLOS-03

Production Inspection Queries

Oracle
-- Canonical TRIAD-2026-W49 reference: see /oracle/cheatsheets/oracle-sql-troubleshooting