Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: SQL Loader error
If I remember right, SQL*LOADER has (or used to have) a maximum field size of 256 characters. This can be overcome by specifying the size you want to load like:
LOAD DATA
INFILE 'sierras.dat'
INTO TABLE ia_test
trailing nullcols
( SWREGNO terminated by ',' OPTIONALLY ENCLOSED BY '"',
comments CHAR(xxx) terminated by ',' OPTIONALLY ENCLOSED BY '"' )
Where xxx is the size of the field in the table you are trying to load into.
Regards,
Kev.
-----Original Message-----
Sent: 30 January 2002 12:11
To: Multiple recipients of list ORACLE-L
heres the ctl
LOAD DATA
INFILE 'sierras.dat'
INTO TABLE ia_test
trailing nullcols
( SWREGNO terminated by ',' OPTIONALLY
ENCLOSED BY '"',
comments terminated by ',' OPTIONALLY ENCLOSED BY'"')
dat file looks something like:
"aer100","customer's wish to cancel"
"aer200","etc."
"Thomas, Kevin" <Kevin.Thomas_at_calanais.com>@fatcity.com on 30/01/2002 11:25:34
Please respond to ORACLE-L_at_fatcity.com
Sent by: root_at_fatcity.com
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc:
Could you post the control file?
Kev.
-----Original Message-----
Sent: 30 January 2002 09:15
To: Multiple recipients of list ORACLE-L
i have these 2 errors in the log file
1.Record 2389: Rejected - Error on table IA_TEST, column COMMENTS. Field in data file exceeds maximum length
2. Record 885: Rejected - Error on table IA_TEST. ORA-01401: inserted value too large for column
whats the differennce between the 2?
cheers
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: iashraf_at_csc.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-LReceived on Wed Jan 30 2002 - 07:01:45 CST
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Thomas, Kevin INET: Kevin.Thomas_at_calanais.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: iashraf_at_csc.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Thomas, Kevin INET: Kevin.Thomas_at_calanais.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).