We help IT Professionals succeed at work.
Get Started

I am  constantly  getting the following while executing a stored proc which is called from within another stored proc .What i am using is ORA10g.  ORA-06502: PL/SQL: numeric or value error

814 Views
Last Modified: 2013-12-18
I am  constantly  getting the following while executing a stored proc which is called from within another stored proc .Server  is  ORA10g.

ORA-06502: PL/SQL: numeric or value error

I have checked all possbile causes for this error ... .and it not the common casuses .. ..like field lengths , data type mismatch source and destination tables   etc . . . .

To track the error i have inserted values in to a temporary table for each statement that is execurted in the procedure.

The statment executions stop at  :

EXECUTE IMMEDIATE 'TRUNCATE TABLE Tbl_XXXX';

Is there anything wrong with using execute immediate statements in a procs .....

Or any specific rules that apply to usage of this statement?

I do not know how to correlate a truncate statement with a numeric value error .

Experts please help.

Comment
Watch Question
Billing Engineer
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2009
Commented:
This problem has been solved!
Unlock 1 Answer and 12 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE