Re: Datetime data type problem with dbimport.
Posted in 2004
--0__=09BBE41ADFDFF7858f9e8a93df938690918c09BBE41ADFDFF785
Content-type: multipart/alternative;
Boundary="1__=09BBE41ADFDFF7858f9e8a93df938690918c09BBE41ADFDFF785"
--1__=09BBE41ADFDFF7858f9e8a93df938690918c09BBE41ADFDFF785
Content-type: text/plain; charset=US-ASCII
Try setting the DBDATE format to
MDY4/
and try dbimport again.
Venkatesh.
|---------+---------------------------->
| | "Willie Snyman" |
| | <willie@raf.co.za|
| | > |
| | Sent by: |
| | owner-informix-li|
| | st@iiug.org |
| | |
| | |
| | 05/03/2004 03:56 |
| | AM |
|---------+---------------------------->
>------------------------------------------------------------------------------------------------------------------------------|
| |
| To: <informix-list@iiug.org> |
| cc: |
| Subject: Datetime data type problem with dbimport. |
>------------------------------------------------------------------------------------------------------------------------------|
Hi there.
When I do a dbexport of a database with tables that include datetime data
types it works fine.
But when I try to use dbimport it stops at the tables with this error
message :
Non-numeric character in datetime or interval.
I've tried to manually load the rows but with no success.
In INSERT statement number 1 of raw data file sec_user.unl.
Row number 1 is bad.
E1141|MARTHIA|M||BRAND|126|6705300011085|27/08/2003|5|1|Y|27/08/2003
14:20:10|||Willie@test|
Non-numeric character in datetime or interval.
This is the table layout:
create table "informix".sec_user
(
userid char(8) not null ,
name varchar(20) not null ,
initials char(3) not null ,
nickname varchar(20),
surname varchar(20) not null ,
raf_id_num integer,
id_num char(20) not null ,
date_create date not null ,
user_stat_cde char(5) not null ,
user_type_cde char(5) not null ,
confidential_sign char(1) not null ,
date_active datetime year to second,
date_inactive datetime year to second,
user_basket integer,
e_mail varchar(20,1) not null ,
primary key (userid) constraint "informix".pk_sec_user1
);
revoke all on "informix".sec_user from "public";
My environment variables is set to:
GL_DATETIME=%d/%m/%Y %H:%M:%S
DBDATE=DMY4/
I'me using Informix Dynamic Server Version 9.30.UC2
Any suggestions are welcome.
Thanks.
--1__=09BBE41ADFDFF7858f9e8a93df938690918c09BBE41ADFDFF785
Content-type: text/html; charset=US-ASCII
Content-Disposition: inline
<html><body>
<p>Try setting the DBDATE format to <br>
MDY4/<br>
<br>
and try dbimport again.<br>
<br>
Venkatesh.<br>
<br>
<img src="cid:10__=09BBE41ADFDFF7858f9e8a93df938@us.ibm.com" width="16" height="16" alt="Inactive hide details for "Willie Snyman" <willie@raf.co.za>">"Willie Snyman" <willie@raf.co.za><br>
<br>
<br>
<table V5DOTBL=true width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="1%"><img src="cid:20__=09BBE41ADFDFF7858f9e8a93df938@us.ibm.com" border="0" height="1" width="72" alt=""><br>
</td><td style="background-image:url(cid:30__=09BBE41ADFDFF7858f9e8a93df938@us.ibm.com); background-repeat: no-repeat; " width="1%"><img src="cid:20__=09BBE41ADFDFF7858f9e8a93df938@us.ibm.com" border="0" height="1" width="225" alt=""><br>
<ul>
<ul>
<ul>
<ul><b><font size="2">"Willie Snyman" <willie@raf.co.za></font></b><br>
<font size="2">Sent by: owner-informix-list@iiug.org</font>
<p><font size="2">05/03/2004 03:56 AM</font></ul>
</ul>
</ul>
</ul>
</td><td width="100%"><img src="cid:20__=09BBE41ADFDFF7858f9e8a93df938@us.ibm.com" border="0" height="1" width="1" alt=""><br>
<font size="1" face="Arial"> </font><br>
<font size="2"> To: </font><font size="2"><informix-list@iiug.org></font><br>
<font size="2"> cc: </font><br>
<font size="2"> Subject: </font><font size="2">Datetime data type problem with dbimport.</font></td></tr>
</table>
<br>
<br>
<font face="Arial">Hi there.</font><br>
<font size="4"> </font><br>
<font face="Arial">When I do a dbexport of a database with tables that include datetime data types it works fine.</font><br>
<font face="Arial">But when I try to use dbimport it stops at the tables with this error message : </font><br>
<font size="4"> </font><br>
<font face="Arial">Non-numeric character in datetime or interval.</font><br>
<font size="4"> </font><br>
<font face="Arial">I've tried to manually load the rows but with no success.</font><br>
<font size="4"> </font><br>
<font face="Arial">In INSERT statement number 1 of raw data file sec_user.unl.<br>
Row number 1 is bad.<br>
E1141|MARTHIA|M||BRAND|126|6705300011085|27/08/2003|5|1|Y|27/08/2003 14:20:10|||Willie@test|</font><br>
<font size="4"> </font><br>
<font face="Arial">Non-numeric character in datetime or interval.</font><br>
<font size="4"> </font><br>
<font face="Arial">This is the table layout:</font><br>
<font size="4"> </font><br>
<font face="Arial">create table "informix".sec_user<br>
(<br>
userid char(8) not null ,<br>
name varchar(20) not null ,<br>
initials char(3) not null ,<br>
nickname varchar(20),<br>
surname varchar(20) not null ,<br>
raf_id_num integer,<br>
id_num char(20) not null ,<br>
date_create date not null ,<br>
user_stat_cde char(5) not null ,<br>
user_type_cde char(5) not null ,<br>
confidential_sign char(1) not null ,<br>
date_active datetime year to second,<br>
date_inactive datetime year to second,<br>
user_basket integer,<br>
e_mail varchar(20,1) not null ,<br>
primary key (userid) constraint "informix".pk_sec_user1<br>
);<br>
revoke all on "informix".sec_user from "public";</font><br><font size="4"> </font><br>
<font size="4"> </font><br>
<font face="Arial">My environment variables is set to:</