I have an SQL loader control file,
LOAD DATA INFILE 'test.txt' INTO TABLE TEST replace fields terminated "|" optionally enclosed by '"' TRAILING NULLCOLS ( DOCUMENTID INTEGER(10), CUSTID INTEGER(10), USERID INTEGER(10), FILENAME VARCHAR(255), LABEL VARCHAR(50), DESCRIPTION VARCHAR(2000), POSTDATE DATE "YYYY-MM-DD HH24:MI:SS" NULLIF POSTDATE="", USERFILENAME VARCHAR(50), STORAGEPATH VARCHAR(255) )
and this gives me an error when running SQL Loader on it,
Record 1: Rejected - Error on table TEST, column FILENAME. Variable length field exceeds maximum length.
Here is this row .. the length of this column is 255 ..
1|5001572|2|/Storage/Test/5001572/test.pdf|test.pdf||2005-01-13 11:47:49||
And here is the strangeness that I noticed in the log file
Column Name | Position | Len | Term | Encl | Datatype
FILENAME | NEXT | 257 | | | VARCHAR
I define the length as 255 both in my table and in the control file. But does the magazine spit it out like 257? I tried to reduce the length in the control file to 253, so it appears as 255 in the log file, but the same problem.
Any help? This has been bothering me for two days.
Thanks.
oracle sql-loader
tjsimmons
source share