RE: Constant Date in SQL*Loader Control File

2003-06-26 Thread David Lewandowski
That's it. Thanks Ron and everyone else for your help. Dave -Original Message- Sent: Thursday, June 26, 2003 1:51 PM To: Multiple recipients of list ORACLE-L David, Try removing the word "CONSTANT" from the string. LOADDATE "TO_DATE('20030626', 'MMDD')", Ron >>> [EMAIL PROTECTE

Re: Constant Date in SQL*Loader Control File

2003-06-26 Thread Daniel Fink
David, Have you tried removing the " around the TO_DATE call? The " indicate a character string and Oracle is unable to translate that string into something acceptable for a DATE datatype. David Lewandowski wrote: > > Thanks Lisa. But regrettably my LOADDATE isn't always SYSDATE. Do

RE: Constant Date in SQL*Loader Control File

2003-06-26 Thread Koivu, Lisa
Hi David, Ron's suggestion worked, I just tried it: LOAD_DATE "TO_DATE('010103','MMDDYY')" Give it a try. -Original Message- Sent: Thursday, June 26, 2003 3:24 PM To: Multiple recipients of list ORACLE-L Thanks Lisa. But regrettably my LOADDATE isn't always SYSDATE.

RE: Constant Date in SQL*Loader Control File

2003-06-26 Thread Goulet, Dick
Dave, I believe if you specify in the .cal file: loaddate "to_date('20030626', 'MMDD')", That will default the date to what you want. Now if the date is sometimes specified that's a different story. Dick Goulet Senior Oracle DBA Oracle Certified 8i DBA -Original Message-

RE: Constant Date in SQL*Loader Control File

2003-06-26 Thread David Lewandowski
Thanks Lisa. But regrettably my LOADDATE isn't always SYSDATE. Do you know the syntax for an arbitrary date? Dave -Original Message- Sent: Thursday, June 26, 2003 1:09 PM To: Multiple recipients of list ORACLE-L Hi David, Here's one of my control files, it works for me... LOAD_DA

RE: Constant Date in SQL*Loader Control File

2003-06-26 Thread Ron Rogers
David, Try removing the word "CONSTANT" from the string. LOADDATE "TO_DATE('20030626', 'MMDD')", Ron >>> [EMAIL PROTECTED] 06/26/03 02:09PM >>> Hi David, Here's one of my control files, it works for me... LOAD_DATE is indeed a date field. OPTIONS (DIRECT=TRUE, PARALLEL=FALSE, BINDSIZE=1

RE: Constant Date in SQL*Loader Control File

2003-06-26 Thread Koivu, Lisa
Hi David, Here's one of my control files, it works for me... LOAD_DATE is indeed a date field. OPTIONS (DIRECT=TRUE, PARALLEL=FALSE, BINDSIZE=1048576) UNRECOVERABLE LOAD DATA INFILE 'D:\FTPRoot\vegas\ascname.txt' BADFILE 'D:\data\vegas\log\ascname.bad' DISCARDFILE 'D:\data\vegas\log\ascname.ds

Constant Date in SQL*Loader Control File

2003-06-26 Thread David Lewandowski
I can't figure out how to specify a constant date for a column in a SQL*Loader control file and can't find any examples. I tried: LOADDATE CONSTANT "TO_DATE('20030626', 'MMDD')", but I get this error message in the log file: ORA-01858: a non-numeric character was found where a numeric w