When connecting Oracle in.NET and using dataAdapter fill, the exception of OCI-22053: overflow error occurs, because the data type precision of.NET is smaller than that of Oracle, such as
Select sysdate- ISSUetime as Timediff from sometable returns an excessive precision
Select TRUNc (sysdate-issuetime,2) as Timediff from sometable.
There are other ways to do this online:
http://excel.cnblogs.com/archive/2005/11/14/276202.html using the new ODP.NET da. SafeMapping. Add (field name 1, typeof (System. String)); Method converts all fields to String. But I went to the Oracle website and found that the 9207 version of ODAC is 80M… I’m too lazy to download.
The Oracle numeric data type can store up to 38 bytes of precision.
the Oracle value
may become too large when converting the Oracle value to the common language runtime data type. This causes an Oracle OCI-22053 overflow error.
The solution is to use the round function.
How to use the Oracle Round function (rounded)
Description: Returns a value that is rounded to the specified number of decimal digits.
SELECT ROUND( number, [ decimal_places ] ) FROM DUAL
Parameters:
Number: The number you want to process
Decimal_places: Round up and take a few decimal places (default is 0)
Sample :
Select round (123.456) from dual; The
Select round(123.456, 0) from Dual; The
Select round(123.456, 1) from Dual; The
Select round(123.456, 2) from Dual; The
Select round(123.456, 3) from Dual; The
Select round(-123.456, 2) from dual; The
From:
http://blog.csdn.net/xeonol/article/details/726133
Read More:
- Latex row overflow problem overfull / hbox (1.1499pt too wide) in paragraph
- Arithmetical overflow error converting expression to data type datetime
- Develop a Boolean equation for overflow detection
- Differences between Java stack overflow ror and outofmemoryerror
- The C language qsort() function reports an error for overflow of – 2147483648 and 2147483648
- How to Solve Int Data overflow error
- Arithmetic overflow error converting identity to data type int
- How to Fix stack overflow error
- OpenGL runtime returned 1283 (stack overflow) error
- The difference, cause and solution of memory overflow and memory leak
- Out of memory overflow solution for idea running error
- JNI ERROR global reference table overflow [How to Solve]
- Running realsense ROS reports an error, USB cam overflow, hardware error
- Solution pandas.errors.ParserError : Error tokenizing data. C error: Buffer overflow caught
- Tomcat memory overflow in Eclipse: Java. Lang. outofmemoryerror: permgen space solution:
- Arithmetic overflow error converting numeric to data type numeric.
- Fatal error: Newspace:: rebalance allocation failed – process out of memory (memory overflow)
- After vivado joined ILA, the [DRC lutlp-1] problem of error problem was solved
- To solve the problem of failed to load: data in HTML5 game running rmmv locally/ actors.json problem
- [unity] when using unity hub, there is a problem of “failed to delete old unit installation file…” problem