Errors ORA-06502 and ORA-01438

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nabh4u
    New Member
    • Jan 2007
    • 62

    Errors ORA-06502 and ORA-01438

    HI everyone,

    I an getting the following errors when i execute my procedure.

    SQL> exec PROCEDURE_NAME
    BEGIN PROCEDURE_NAME; END;
    *
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "PROCEDURE_NAME ", line 164
    ORA-01438: value larger than specified precision allows for this column
    ORA-06512: at line 1

    I am using oracle 9i and sqlplus to execute the procedure.

    I even tried setting the serveroutput on and increasing the size to some 1000000. But i still get the same errors.

    I dont understand what to do.

    any help will be appreciated.

    thanks in advance

    nabh4u.
  • pjda
    New Member
    • Aug 2007
    • 4

    #2
    Originally posted by nabh4u
    HI everyone,

    I an getting the following errors when i execute my procedure.

    SQL> exec PROCEDURE_NAME
    BEGIN PROCEDURE_NAME; END;
    *
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at "PROCEDURE_NAME ", line 164
    ORA-01438: value larger than specified precision allows for this column
    ORA-06512: at line 1

    I am using oracle 9i and sqlplus to execute the procedure.

    I even tried setting the serveroutput on and increasing the size to some 1000000. But i still get the same errors.

    I dont understand what to do.

    any help will be appreciated.

    thanks in advance

    nabh4u.
    This doesn't sound like a SERVEROUTPUT issue. You would have to post Line 164 of procedure PROCEDURE_NAME, plus what you're trying to put into it before anyone could help you.

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      the error message clearly says the the error is becauss of error in the procedure body and the main reason is ,it is trying to assign a lave value to a variable of smaller precision.

      like assigning 'SSSSSSSSSSSSSS SSSSSSSSSSSSSSS S' to a varchar2(10) variable .

      Comment

      • amitpatel66
        Recognized Expert Top Contributor
        • Mar 2007
        • 2358

        #4
        Increase the size of the variable that is trying to store the values larger thatn its size would solve your problem!!

        Comment

        Working...