avi_ny
asked on
SQL lOADER(DATA FORMAT)
Hi All,
My data file records looks like this
95938,95940,12-23-2005,01- 26-2006,"L andmark VI CDO, Ltd.",Asset-Backed Securities,CDO,,,,310,6,B, 15000000,, 9.2,Aa2,AA ,,Floating ,,100.000, ,50.000,,L ibor,,Othe r Tranche Comments,Comments
How can I load this file using sql loader
I created the ctl file like this
load data
badfile /u01/sf_laod.bad'
append
INTO TABLE TT
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(IGMSecurityID "trim(:IGMSecurityID)",
-----
-----)
It ingnore all the records
saying ORA-01008: not all variables bound
I think it is due to (") data have in ,"Landmark VI CDO, Ltd." How can I solve this problem.
Reply ASAP
Thanks
My data file records looks like this
95938,95940,12-23-2005,01-
How can I load this file using sql loader
I created the ctl file like this
load data
badfile /u01/sf_laod.bad'
append
INTO TABLE TT
FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'
TRAILING NULLCOLS
(IGMSecurityID "trim(:IGMSecurityID)",
-----
-----)
It ingnore all the records
saying ORA-01008: not all variables bound
I think it is due to (") data have in ,"Landmark VI CDO, Ltd." How can I solve this problem.
Reply ASAP
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@johnsone
>>...if there are multiple delimiters, it treats it as 1 column.
Never have I seen SQL*Loader treat consecutive delimiters as ONE.
Only with the optionally enclosed by. That is the ONLY time I have ever seen that.
Forced accept.
Computer101
EE Admin
Computer101
EE Admin
Thanks