Home / Oracle Errors / ORA-06512

ORA-06512

At line number (error stack line)

What it means

This line is not the real error. It only shows where in your PL/SQL code the previous error occurred.

Common causes

How to fix it

  1. Read the first ORA error in the stack, not this line
  2. Use the line number to find the statement in the named procedure: SELECT text FROM dba_source WHERE name='<PROC>' AND line=<n>;
  3. Use DBMS_UTILITY.FORMAT_ERROR_BACKTRACE in your exception handler

How to prevent it

Always log the full error stack in exception handlers.

Still stuck? Ask the community in Q&A.

Get the weekly Vismo digestNew Oracle articles and Q&A in your inbox. No spam.

One email a week. Unsubscribe any time.