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

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 Method

NESTED LOOPS

Iterates each row from the outer (driving) row source and probes the inner row source once per driving row.

Join Method

HASH JOIN

Builds an in-memory hash table from the smaller (build) input in PGA and streams the larger (probe) input through it.

Join Method

MERGE JOIN CARTESIAN

Combines every row from the first row source with every row from the second row source, producing M x N rows.

Index Access

INDEX RANGE SCAN

Traverses the B-Tree root-to-leaf path once and walks adjacent leaf blocks matching a bounded access() predicate.

Index Access

INDEX UNIQUE SCAN

Performs a single B-Tree lookup guaranteed to return at most 1 ROWID via a UNIQUE or PRIMARY KEY index.

Index Access

INDEX 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 Access

INDEX FULL SCAN

Reads every leaf block of an index in logical key order using single-block reads (db file sequential read).

Index Access

INDEX FAST FULL SCAN

Reads all blocks of an index in physical order using fast multiblock I/O without visiting the base table.

Table Access

TABLE 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 & Aggregation

SORT ORDER BY

Materializes and sorts all input rows in PGA memory (spilling to TEMP if larger than workarea).

Sort & Aggregation

HASH GROUP BY

Groups input rows using an in-memory PGA hash table without requiring sorted output.

Oracle Wait Events Diagnostics (10)

Oracle ORA- Error Decoder (12)

ORA-00060

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-01555

ORA-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-01722

ORA-01722: invalid number

Oracle attempted to implicitly or explicitly convert a non-numeric character string to a NUMBER and failed.

ORA-00942

ORA-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-00001

ORA-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-01400

ORA-01400: cannot insert NULL into column

Attempted to insert NULL or an empty string '' into a NOT NULL column.

ORA-01427

ORA-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-01652

ORA-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-02291

ORA-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-02292

ORA-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-04031

ORA-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-12899

ORA-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).