[IBM][CLI Driver][DB2] SQL0181N The String Representation of a Datetime Aalue is out of Range. SQLSTATE=22007 {22007,NativeErr = -181} Using Dg4ODBC with DB2
(Doc ID 1670754.1)
Last updated on FEBRUARY 25, 2022
Applies to:
Oracle Database - Enterprise Edition - Version 11.2.0.4 and laterOracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.
Symptoms
Using Database Gateway for ODBC (DG4ODBC) 11.2.0.4 to select from DB2 a query with a where condition on a date column fails with the error -
[IBM][CLI Driver][DB2] SQL0181N The string representation of a datetime value is out of range. SQLSTATE=22007
{22007,NativeErr = -181}
{22007,NativeErr = -181}
e.g.
SELECT COL1, COL2
FROM DB2TABLE@DBLINK
WHERE COL3 >'2005-01-01'
Changes
11.2.0.3 DG4ODBC was upgraded to 11.2.0.4
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |