DB2 - Problem description
Problem IC99920 | Status: Closed |
IMPORT MIGHT HIT SQL0304N ERROR AND REJECT ROWS CONTAINING TIMESTAMP DATA IF TIMESTAMPFORMAT IS SPECIFIED FOR ASC/DEL FILE | |
product: | |
DB2 FOR LUW / DB2FORLUW / A50 - DB2 | |
Problem description: | |
With V9.7 client, when importing data to a table with TIMESTAMP column(s) in V9.5 or earlier database, if the timestampformat file type modifier is specified for ASC/DEL file, IMPORT might hit SQL0304N error when attempting to import rows containing TIMESTAMP data, and then reject the rows. You can see the following messages when the issue occurs: SQL3148W A row from the input file was not inserted into the table. SQLCODE "-304" was returned. SQL0304N A value cannot be assigned to a host variable because the value is not within the range of the host variable's data type. SQLSTATE=22003 | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * When importing data to a table with TIMESTAMP column(s) in * * V9.5 or earlier database. * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to v10.5 FP3. * **************************************************************** | |
Local Fix: | |
Try to remove the timestampformat file type modifier from the IMPORT command and import again when TIMESTAMP data is well formatted in the ASC/DEL file. | |
available fix packs: | |
DB2 Cancun Release 10.5.0.4 (also known as Fix Pack 4) for Linux, UNIX, and Windows | |
Solution | |
The problem is firstly fixed on v10.5 FP3. | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 07.03.2014 15.09.2014 15.09.2014 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) | |
10.5.0.4 |