Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Oracle > ORA-06502:PL/SQL:numeric or value error.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-08-03, 00:35
dushyants dushyants is offline
Registered User
 
Join Date: Feb 2003
Posts: 2
ORA-06502:PL/SQL:numeric or value error.

Hi All,
I am working on a web application that is developed using MOD_PLSQL. In my endeavors to enhance the application, I need to do following conditional check:
IF v_old_contract_rate*1.05 > v_new_contract_rate THEN
<do this>
END IF;
Here v_old_contract_rate and v_new_contract_rate both are variable declared as NUMBER (no precision specified). This generates following run time error:
ORA-06502:PL/SQL:numeric or value error.
Above error occurs for any numeric value of both the variables. Interestingly error doesn't occur if I replace '>' with '='. More over statement like IF 1.55 > 1.405 THEN also generated above error. Same error comes with '<>' comparison also. I am not finding any reason for this error. Could you please help me? Any clues??
Thanx in advance.

Best Regards,
Dushyant
Reply With Quote
  #2 (permalink)  
Old 02-08-03, 06:08
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 4,874
Re: ORA-06502:PL/SQL:numeric or value error.

Can you produce a simple but complete example that demonstrates the problem in just PL/SQL, so that we can try it?
__________________
Tony Andrews
http://tonyandrews.blogspot.com
Reply With Quote
  #3 (permalink)  
Old 02-08-03, 08:02
dushyants dushyants is offline
Registered User
 
Join Date: Feb 2003
Posts: 2
Re: ORA-06502:PL/SQL:numeric or value error.

Quote:
Originally posted by andrewst
Can you produce a simple but complete example that demonstrates the problem in just PL/SQL, so that we can try it?


Hi Tony,
Thanks for your response.
I am sorry, I doubt if I can provide you any example that will simulate the problem. When I run such a block saperately, it gives no problem. A saperate procedure with same business logic works fine. But it fails with some other MOD_PLSQL calls. Any inputs??
Thanks once again for your response.

Regards,
Dushyant
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On