Home » RDBMS Server » Server Utilities » New sqlldr user having problems loading date column
New sqlldr user having problems loading date column [message #70730] Thu, 18 July 2002 08:55 Go to next message
Frank
Messages: 7901
Registered: March 2000
Senior Member
I am unable to load the following date value "1995-08-30 01:00:00" (from MSSQL7) into an 8i table value defined as 'EstablishDate DATE NULL' using sqlldr. My ctl is as follows:

LOAD DATA
INFILE 'Customer_Test.dat'
INTO TABLE Customer_Test
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
(CustID,...,EstablishDate DATE(20) 'YYYY-MM-DD HH24:MM:SS',...)

I have tried numerous masks, but most often I receive the "Record 1: Rejected - Error on table CUSTOMER_TEST, column ESTABLISHDATE.
ORA-01810: format code appears twice" error message.
I am a definite newbie at Oracle. Does anyone have any suggestions? Much thanks!!
Re: New sqlldr user having problems loading date column [message #70731 is a reply to message #70730] Thu, 18 July 2002 10:35 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
your code is

(CustID,...,EstablishDate DATE(20) 'YYYY-MM-DD HH24:MM:SS',...)
the correct format code is MI not MM

(CustID,...,EstablishDate DATE(20) 'YYYY-MM-DD HH24:MI:SS',...
Re: New sqlldr user having problems loading date column [message #70788 is a reply to message #70731] Tue, 23 July 2002 06:39 Go to previous message
Frank
Messages: 7901
Registered: March 2000
Senior Member
Mahesh, Thanks for the help!! Changing "MM" to "MI", along with using "DATE" instead of "DATE(20)" did the trick.
Previous Topic: ORA-01033: ORACLE initialization or shutdown in progress
Next Topic: Re: ORA-12560: TNS:Protocol adaptor error while running SVRMGRL
Goto Forum:
  


Current Time: Sat May 04 07:41:39 CDT 2024