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

Home -> Community -> Usenet -> c.d.o.server -> Re: Loading dates via SQL*Loader

Re: Loading dates via SQL*Loader

From: Lothar Armbrüster <lothar.armbruester_at_rheingau.netsurf.de>
Date: 08 May 98 20:15:21 +0100
Message-ID: <897.432T1067T12153398@rheingau.netsurf.de>


On 07-Mai-98 19:31:46 vjavaly wrote:

>I'm loading 100,000+ rows into Oracle8.0.3 from fixed format flat files
>using SQL*Loader. I want to use direct path load, but I cannot because
>some of my date fields may be blank and I've had to apply the following
>SQL string in my control file for these date fields: prc_tms
>POSITION(536 :554 ) CHAR
>"DECODE(:prc_tms,NULL,NULL,TO_DATE(:prc_tms,'MM/DD/YYYY HH24:MI:SS'))"

>How can I eliminate the above SQL string so I can use direct path load?

Try this:

prc_tms position(536:554) date "MM/DD/YYYY HH24:MI:SS" nullif blanks

You eventually have to adjust the syntax slightly as I'm writing this at home and I don't have my control files from my work at hand to check.

Hope that helps,
Lothar

--

Lothar Armbrüster       | lothar.armbruester_at_rheingau.netsurf.de
Schulstr. 12            | lothar.armbruester_at_t-online.de
D-65375 Oestrich-Winkel |

Received on Fri May 08 1998 - 14:15:21 CDT

Original text of this message

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