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

本文讨论了Oracle数据库中常见的PL/SQL错误ORA-06502和ORA-01403,解释了这些错误发生的原因,通常由于SELECT INTO语句未找到数据或数值赋值错误引起,并提供了相应的解决思路。

ORA-06502: PL/SQL: 数字或值错误: 字符字符串缓冲区太小ORA-06512: "SFIS1.CHECK_ROUTE", line 31ORA-01403: 没有找到数据ORA-06512: "SFIS1.TEST_INPUT_SMTICT_Z", line 75ORA-01403: 没有找到数据ORA-06512: line 1******


导致的原因应该是你使用了
select into
但是根据条件,没有找到记录,所以触发no_data_found错误,而且你的procedure里面应该没有错误处理,提出了不能处理的异常状况 ORA-06502. 这个错误信息。

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

Cause: An arithmetic, numeric, string, conversion, or constraint error occurred. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).

Action: Change the data, how it is manipulated, or how it is declared so that values do not violate constraints.
你还是得想办法找到出错的时候,究竟程序得到的值是什么?当你将这个值赋予一个变量或者赋予一个字段时,出现不匹配或者不满足约束的错误。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-84528/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/35489/viewspace-84528/

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值