Home » RDBMS Server » Server Utilities » SQL LOADER Data file error
SQL LOADER Data file error [message #72076] |
Tue, 04 March 2003 08:51 |
Victoria
Messages: 152 Registered: July 2002
|
Senior Member |
|
|
Hi,
I have the input data file of varying record length of which my last column contains null.
My sample record is
TT,2/13/2003,Y,1,DN,ER,++,QQQ,C,,
RT,2/13/2003,Y,1,DN,TP,++,555,C,S2,
Here only my second record is inserted.It says the error in log file
Record 2: Rejected - Error on table TABLE1, column ACC_ID.
Column not found before end of logical record (use TRAILING NULLCOLS)
--Here the ACC_ID is the name of the last column.
What should i use in control file for this?
My control file entry is
options (direct=FALSE,parallel=false,errors=10000)
Load Data
infile 'file.dat' "str 'n'"
into table TABLE1
fields TERMINATED BY ","
(
HERE I INCLUDED my column specifications
)
Thanks
~V~
|
|
|
|
Re: SQL LOADER Data file error [message #72079 is a reply to message #72076] |
Tue, 04 March 2003 18:50 |
alydapan
Messages: 3 Registered: March 2003
|
Junior Member |
|
|
TT,2/13/2003,Y,1,DN,ER,++,QQQ,C,
RT,2/13/2003,Y,1,DN,TP,++,555,C,S2
There is no comma at the end of record
or you should put quote between column and add ENCLOSE '"' option in your control file if datatype is character or date.
|
|
|
Goto Forum:
Current Time: Sat Jan 11 09:46:20 CST 2025
|