Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Problems with SQL Loader Timestamp

Re: Problems with SQL Loader Timestamp

From: Harald Maier <maierh_at_myself.com>
Date: Wed, 27 Aug 2003 13:49:10 +0200
Message-ID: <m3n0dvgw21.fsf@ate.maierh>

Celia <member37093_at_dbforums.com> writes:

> Hi,
>
> there`s a problem with the data type date in SQL Loader. I'm trying to
> load a file with the following format:
>
>
>
> 2003-02-12 10:28:13.0, field2, ...
>
>
>
> I'd like to load the first field like a date not like a timestamp, but
> SQL Loader always gives me the same error: "ORA-01821: date format not
> recognized"
>
>
>
> I don't know what else I can do. I've tried tu put:
>
>
>
> FECHA DATE to_date(substr(:CMJE_FX_ENTRADA,1,19)
>
> ,'yyyy-mm-dd hh24:mi:ss')" terminated by '.', dummy FILLER
>

Try to convert the field first into a timestamp and then back to a date:

  to_char(to_timestamp( '2003-02-12 10:28:13.0',     'yyyy-mm-dd hh24:mi:ss.ff' ),'yyyy-mm-dd hh24:mi:ss')

Harald Received on Wed Aug 27 2003 - 06:49:10 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US