Home » RDBMS Server » Server Utilities » Cannot format columns in the control file
Cannot format columns in the control file [message #71761] Tue, 07 January 2003 15:19 Go to next message
Vitaliy Selivanov
Messages: 4
Registered: January 2003
Junior Member
Hi,

I am loading data from a "&#124" delimited flat file. In the table into which I am loading the data I have a column "TEXT varchar(255)". Sometimes in the data file the length of this field exceeds 255 which causes SQL*Loader error. In my control file I tried to trim the data coming from the flat file :

( .... TEXT CHAR "substr(TEXT,0,254)" ... )

But there is still a loading problem :

Record 1: Rejected - Error on table
, column TEXT. Field in data file exceeds maximum length

Thanks in advance.
Re: Cannot format columns in the control file [message #71764 is a reply to message #71761] Tue, 07 January 2003 23:55 Go to previous messageGo to next message
Arfat
Messages: 25
Registered: August 2002
Junior Member
Hi,
try using SUBSTR(:TEXT,1,255)

Might SOlve the problem hopefuly
Re: Cannot format columns in the control file [message #71770 is a reply to message #71761] Wed, 08 January 2003 08:30 Go to previous messageGo to next message
Vitaliy Selivanov
Messages: 4
Registered: January 2003
Junior Member
Unfortunetely it still doesn't work.

Here is the way I am using it:

( .... , TEXT CHAR "SUBSTR(:TEXT,1,255)" , ... )
Re: Cannot format columns in the control file [message #71772 is a reply to message #71761] Wed, 08 January 2003 20:49 Go to previous message
Arfat
Messages: 25
Registered: August 2002
Junior Member
Can u send a sample of Data file.
The actual table structure.
and control file.
Previous Topic: Kill Inactive Session after 2 hours
Next Topic: how to trim "enter" in sqlplus ??
Goto Forum:
  


Current Time: Tue May 14 10:19:27 CDT 2024