ORA-06502: PL/SQL: numeric or value error: character string buffer too small. Cause: Variable length into clause v_variable1 is 5 character where output that trying to store in that variable is more than 5 character which cause the error. Solution: Increase the length of the variable v_variable1.