Skip to content

Oracle Database Troubleshooting Guide — Diagnostic Approach by Problem Type

A systematic diagnostic approach organized by the type of problem you’re encountering. Each section links to the specific scripts and error guides that help resolve the issue.


Symptoms: Users cannot connect, intermittent connection drops, “TNS” errors.

  1. Check listener status:

    Terminal window
    lsnrctl status
    lsnrctl services
  2. Verify database is open:

    • db.sql — Database status check
    • vdb.sql — Database state information
  3. Check session and process limits:

  4. Verify user account status:

ErrorCauseQuick Fix
ORA-12541Listener not runningStart the listener
ORA-12154TNS name not foundCheck tnsnames.ora
ORA-12514Service not registeredRegister service with listener
ORA-12516No handler availableIncrease sessions/processes
ORA-28000Account lockedUnlock the account
ORA-01017Wrong passwordReset password
ORA-00018Max sessions exceededIncrease SESSIONS parameter
ORA-00020Max processes exceededIncrease PROCESSES parameter

Symptoms: ORA-01653/01654 errors, tablespace alerts, slow inserts, jobs failing.

  1. Check tablespace usage:

  2. Identify space consumers:

  3. Check temp and undo:

  4. Check FRA/archive space:

ErrorCauseQuick Fix
ORA-01653Table can’t extendAdd datafile or enable autoextend
ORA-01654Index can’t extendAdd space to tablespace
ORA-01652Temp segment fullResize temp tablespace
ORA-01688Partition can’t extendAdd space to partition tablespace
ORA-19815FRA fullDelete old backups or increase FRA size
ORA-00257Archiver stuckFree archive log destination space
ORA-30036Undo segment fullIncrease undo tablespace

Symptoms: Slow queries, high response times, CPU spikes, timeout errors.

  1. Assess current state:

  2. Find problem SQL:

  3. Check memory:

  4. Check I/O:

  5. Generate reports:

ErrorCauseQuick Fix
ORA-04031SGA allocation failureIncrease shared pool or SGA
ORA-04030Process memory exhaustionCheck PGA_AGGREGATE_TARGET
ORA-01555Undo too small for long queriesIncrease undo retention
ORA-01013User cancelled queryOptimize the query

Symptoms: Sessions hanging, “resource busy” errors, deadlocks, application timeouts.

  1. Identify blocking chains:

  2. Examine blocking session:

  3. Check for enqueue waits:

ErrorCauseQuick Fix
ORA-00054Resource busy (DDL blocked)Wait for DML to finish or kill session
ORA-00060Deadlock detectedReview application locking order
  1. Wait — The blocking session may finish shortly
  2. Contact owner — Identify who owns the blocking session
  3. Kill session — Use ALTER SYSTEM KILL SESSION 'sid,serial#' as last resort
  4. Application fix — Redesign to minimize lock hold time

Symptoms: ORA-04031/04030 errors, excessive paging, slow performance.

  1. Check SGA:

  2. Check PGA:

  3. Check for memory leaks:

ErrorCauseQuick Fix
ORA-04031Shared pool exhaustionFlush shared pool or increase size
ORA-04030PGA exhaustionCheck PGA_AGGREGATE_TARGET
ORA-04036PGA limit per processIncrease PGA_AGGREGATE_LIMIT
ORA-00845MEMORY_TARGET not supportedUse ASMM instead of AMM
ORA-27125OS shared memory configIncrease kernel shmmax

Symptoms: Invalid objects, compilation errors, missing privileges.

  1. Check invalid objects:

  2. Check privileges:

  3. Check object status:

ErrorCauseQuick Fix
ORA-00942Object doesn’t existCheck spelling and schema
ORA-01031Insufficient privilegesGrant required privileges
ORA-06508Invalid PL/SQL unitRecompile the object
ORA-04091Mutating triggerRedesign trigger logic