Oracle Database Performance & Tuning Lab
Zero-upload DBMS_XPLAN execution plan visualization, deterministic Oracle operation tuning checklists, Wait Event diagnostics, ORA- error decoders, and zero-downtime Oracle DDL lock audits.
Oracle Execution Plan Operations (12)
TABLE ACCESS FULL
Reads every block of a table up to the High Water Mark using multiblock I/O (db file scattered read or direct path read).
Join MethodNESTED LOOPS
Iterates each row from the outer (driving) row source and probes the inner row source once per driving row.
Join MethodHASH JOIN
Builds an in-memory hash table from the smaller (build) input in PGA and streams the larger (probe) input through it.
Join MethodMERGE JOIN CARTESIAN
Combines every row from the first row source with every row from the second row source, producing M x N rows.
Index AccessINDEX RANGE SCAN
Traverses the B-Tree root-to-leaf path once and walks adjacent leaf blocks matching a bounded access() predicate.
Index AccessINDEX UNIQUE SCAN
Performs a single B-Tree lookup guaranteed to return at most 1 ROWID via a UNIQUE or PRIMARY KEY index.
Index AccessINDEX SKIP SCAN
Probes an existing composite B-Tree index even though its leading column is absent from the WHERE clause, by iterating each distinct leading value.
Index AccessINDEX FULL SCAN
Reads every leaf block of an index in logical key order using single-block reads (db file sequential read).
Index AccessINDEX FAST FULL SCAN
Reads all blocks of an index in physical order using fast multiblock I/O without visiting the base table.
Table AccessTABLE ACCESS BY INDEX ROWID BATCHED
Fetches table blocks using ROWIDs returned by a child index scan, batching multiple ROWIDs to optimize random I/O.
Sort & AggregationSORT ORDER BY
Materializes and sorts all input rows in PGA memory (spilling to TEMP if larger than workarea).
Sort & AggregationHASH GROUP BY
Groups input rows using an in-memory PGA hash table without requiring sorted output.
Oracle Wait Events Diagnostics (10)
db file sequential read
Single-block physical read from disk into the buffer cache, typically driven by index lookups and TABLE ACCESS BY INDEX ROWID.
User I/Odb file scattered read
Multiblock physical read into the buffer cache, typically caused by TABLE ACCESS FULL or INDEX FAST FULL SCAN.
Applicationenq: TX - row lock contention
A session is blocked waiting for another session to COMMIT or ROLLBACK a lock on the same row (or unique index key).
Applicationenq: TM - contention
Table-level DML lock contention, most famously triggered in Oracle by unindexed Foreign Keys during parent DELETE or primary key UPDATE.
Commitlog file sync
Foreground sessions waiting for LGWR to flush redo buffers to online redo log files on COMMIT.
User I/Odirect path read temp
Session reading spilled workarea blocks back from the TEMP tablespace during large sorts, hash joins, or window functions.
Concurrencybuffer busy waits
Multiple sessions contending for simultaneous access to the exact same data block in the SGA buffer cache.
Concurrencylatch: cache buffers chains
Extreme CPU contention spinning on hash chain latches protecting hot blocks in the buffer cache.
User I/Odirect path read
Oracle bypassing the SGA buffer cache to read large table blocks directly into session PGA memory (common in serial large FTS and parallel queries).
Concurrencycursor: pin S wait on X
Sessions waiting to execute a SQL cursor while another session holds an exclusive pin to hard-parse or invalidate the cursor.
Oracle ORA- Error Decoder (12)
ORA-00060: deadlock detected while waiting for resource
Two or more sessions are mutually waiting for locks held by each other; Oracle rolls back one statement to break the cycle.
ORA-01555ORA-01555: snapshot too old: rollback segment number too small
A long-running query needed a consistent read-view of a changed block, but the required Undo data was already overwritten.
ORA-01722ORA-01722: invalid number
Oracle attempted to implicitly or explicitly convert a non-numeric character string to a NUMBER and failed.
ORA-00942ORA-00942: table or view does not exist
The referenced table, view, or synonym cannot be resolved in the current schema or lacks SELECT/DML privileges.
ORA-00001ORA-00001: unique constraint violated
An INSERT or UPDATE attempted to write a duplicate key value into a column set protected by a PRIMARY KEY or UNIQUE index.
ORA-01400ORA-01400: cannot insert NULL into column
Attempted to insert NULL or an empty string '' into a NOT NULL column.
ORA-01427ORA-01427: single-row subquery returns more than one row
A scalar subquery in SELECT, WHERE (=), or UPDATE SET returned 2 or more rows where only 0 or 1 row is permitted.
ORA-01652ORA-01652: unable to extend temp segment in tablespace TEMP
A query exhausted all free space in the TEMP tablespace during a massive sort, hash join, or global temporary table load.
ORA-02291ORA-02291: integrity constraint violated - parent key not found
An INSERT or UPDATE on a child table referenced a foreign key value that does not exist in the parent table.
ORA-02292ORA-02292: integrity constraint violated - child record found
Attempted to DELETE or update a parent key that is still referenced by rows in a child table.
ORA-04031ORA-04031: unable to allocate bytes of shared memory
The SGA Shared Pool is exhausted or severely fragmented and cannot allocate memory for parsing SQL or PL/SQL.
ORA-12899ORA-12899: value too large for column
Inserted string exceeds the column's BYTE or CHAR length limit (very common with UTF-8 multi-byte characters in VARCHAR2(N BYTE) columns).