sql loader error invalid number [message #319409] |
Sat, 10 May 2008 14:36 |
derekgee
Messages: 5 Registered: May 2008 Location: scotland
|
Junior Member |
|
|
hi, i'm new to oracle and having problems bulk loading a flat file.
load data
infile 'c:\bulk_track_file.txt'
into table temp_track_file
fields terminated by "#"
trailing nullcols
(track_id integer external,
dist_id integer external,
file_type_id integer external,
local_file integer external,
preview integer external,
created char(50),
inserted char(50),
modified char(50))
Record 1: Rejected - Error on table TEMP_TRACK_FILE, column TRACK_ID.
ORA-01722: invalid number
the row looks like this
1647168#40#62#0#0#NULL#2007-10-26 07:14:39.950#2007-10-26 07:14:39.950#2007-10-26 07:14:39.950
there are no comma or full stops in the track_id col.
i get this error for all records.
any ideas?
|
|
|
|
|
|
|
|
|
|
Re: sql loader error invalid number [message #319422 is a reply to message #319409] |
Sat, 10 May 2008 16:24 |
|
BlackSwan
Messages: 26766 Registered: January 2009 Location: SoCal
|
Senior Member |
|
|
>as far as i can see from this link the config and data is correct.
How do you reconcile the statement above with the FACT errors are reported by SQLLDR?
If your statement above is correct, then SQLLDR must have a bug & is reporting errors where no problem exists. Right?
Which reality is more likely; your assessment or SQLLDR's correctness?
When Oracle reports an error, you really, really, really should believe it.
Alternatively, you could try a simple exercise & a variation on your ultimate goal by making all the data types to be VARCHAR2;
in order to gain some perspective on how Oracle is dealing with the data & control file contents.
[Updated on: Sat, 10 May 2008 17:55] by Moderator Report message to a moderator
|
|
|
|
|
|
|