版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sundacheng1989/article/details/80418398
Exception:
ORA-21525: attribute number or (collection element at index) string violated its constraints
Cause: Attribute value or collection element value violated its constraint.
Action: Change the value of the attribute or collection element such that it meets its constraints. The constraints are specified as part of the attribute or collection element's schema information.
错误原因:
在C#中向存储过程传递数据的时候,使用了oracle的自定义object,但是在传入的时候,有的obj的字段,最终传入的值的长度大于type定义时的长度,就会抛出这个异常。比如说这次是type number(3) 却传入了1100.
可能会有其他的问题,也会抛出这个异常,不一定跟这次遇到的一模一样,仅仅是作为一个解决问题的参考。
ORA-21525: attribute number or (collection element at index) string violated its constraints
Cause: Attribute value or collection element value violated its constraint.
Action: Change the value of the attribute or collection element such that it meets its constraints. The constraints are specified as part of the attribute or collection element's schema information.
错误原因:
在C#中向存储过程传递数据的时候,使用了oracle的自定义object,但是在传入的时候,有的obj的字段,最终传入的值的长度大于type定义时的长度,就会抛出这个异常。比如说这次是type number(3) 却传入了1100.
可能会有其他的问题,也会抛出这个异常,不一定跟这次遇到的一模一样,仅仅是作为一个解决问题的参考。