Oracle pl/sql error: ORA-06512

      No Comments on Oracle pl/sql error: ORA-06512
0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 Buffer 0 Email -- Filament.io 0 Flares ×

ORA-06512

This is a Back trace error message.This normally displayed as ORA-06512: at line (linenumber).The below give example is a typical scenario.

Normally the first line of the error message (ORA-06502) indicates the error that occurred
The second line of the error message ( ORA-06512) indicates that the error occurred at line 5 of the PLSQL code.

Consider the following example

SQL> set serveroutput on;
SQL> declare
msg varchar2(10);
--num number;
begin
msg := 'String with more than 10 characters!';
--num := msg;
dbms_output.put_line(msg);
end;
/
declare
*ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 5

SQL>

Technorati Tags:
, ,

0 Flares Twitter 0 Facebook 0 Google+ 0 LinkedIn 0 Buffer 0 Email -- Filament.io 0 Flares ×

Leave a Reply

Your email address will not be published. Required fields are marked *

Paged comment generated by AJAX Comment Page