Here is the control file...
Actually, I didn't decalre this column in the control file (is CHAR the default?), since when I tried to decalre it as varchar2(2000), I got the error message
SQL*Loader-350: Syntax error at line 34.
Expecting "," or ")", found "varchar2".
CallEventLog varchar2(2000) "substr(:CallEventLog,1,2000)",
And my control file looks like:
options (direct=true, rows=50000)
load data
infile 'e:\temp\mig\cd_bcp_all_test.csv' "str '+++'"
append
discardmax 10000
into table calldetail_bcp_new
fields terminated by '%%'
TRAILING NULLCOLS
(CallId,
CallType,
... -- omit some columns here
CallEventLog varchar2(2000) "substr(:CallEventLog,1,2000)",
...)
Thanks!!!