Home » RDBMS Server » Server Utilities » Error: Field in data file exceeds maximum length
Error: Field in data file exceeds maximum length [message #69272] Sun, 02 December 2001 11:02 Go to next message
Karen_merely34
Messages: 1
Registered: December 2001
Junior Member
HI!

I am getting a "Field in data file exceeds maximum length" error when I use sqlload to load a data file into a newly created table. When I created the table, I specified the data type of this field--feedback to be a VARCHAR2 (1000). Although I only have less than 255 characters of data in this field, sqlload returns this error message. I have no idea why.

Thank you very much for your assistance.

Sincerely

Karen Merely

----------------------------------------------------------------------
Re: Error: Field in data file exceeds maximum length [message #69274 is a reply to message #69272] Sun, 02 December 2001 14:18 Go to previous messageGo to next message
Ifigenia
Messages: 6
Registered: November 2001
Junior Member
SQL*Loader has an own predefault maximum field length of 256 characters. If your data is up to 256 characters change your datatype from VARCHAR2 to CHAR. I hope this helps.

----------------------------------------------------------------------
Re: Error: Field in data file exceeds maximum length [message #69284 is a reply to message #69272] Mon, 03 December 2001 12:05 Go to previous messageGo to next message
Prabha R
Messages: 21
Registered: October 2001
Junior Member
Hi,
I'm also facing exactly the same problem. My data is upto 500 characters. In such cases, how will i load the data using SQL Loader. Is there any other way to overcome this problem. Your suggestions will be greatly appreciated.

----------------------------------------------------------------------
Re: Error: Field in data file exceeds maximum length [message #69293 is a reply to message #69272] Tue, 04 December 2001 23:12 Go to previous messageGo to next message
Ifigenia
Messages: 6
Registered: November 2001
Junior Member
Overload this default in order for loader to allow longer values.

e.g.

INFILE file
INSERT
INTO TABLE table_name
FIELDS TERMINATED BY ','
(column_1,column_2,column_3 char(500),column_5,..., column_n)

I hope this helps

Ifigenia

----------------------------------------------------------------------
Re: Error: Field in data file exceeds maximum length [message #69300 is a reply to message #69272] Wed, 05 December 2001 12:04 Go to previous messageGo to next message
Prabha R
Messages: 21
Registered: October 2001
Junior Member
Thank you very much sir. Your solution was very helpful.

----------------------------------------------------------------------
Re: Error: Field in data file exceeds maximum length [message #70344 is a reply to message #69274] Thu, 30 May 2002 18:27 Go to previous message
Aliiiii
Messages: 1
Registered: May 2002
Junior Member
You guys are all jacked up...way jacked up because im getting the same error for a number field. Hook me up please.
Previous Topic: Sqlldr Cannot open control file
Next Topic: export in 9i :error
Goto Forum:
  


Current Time: Fri Apr 19 07:54:54 CDT 2024