Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQLLDR fixed format and number format
Moritz Klein schrieb:
> Maxim Demenko schrieb:
>
>> I couldn't reproduce your problem, (though not with the controlfile >> you provided ). To load data from your example, i had only specified >> group delimiter explicitly (i.e. >> "to_number(:official_vol_prev,'9999999G999')" , the sign was >> recognized by sqlldr without any problems. You could however specify >> the sign format mask explicitly (i.e. >> "to_number(:official_vol_prev,'S9999999G999')").
Now i got it too, it seems, by using of 'G' + is not more optional, and
by combination 'SG' all numbers must be signed. So, i would suggest use
of only 'G' modifiers and ltrim all '+' signs (i.e.
open_int_change_prev position(138:147)
"to_number(ltrim(:open_int_change_prev,'+'),'S99G999')" ).
Btw, if you would post the ddl of your table ( as well as your plattform and db version) , it would be easier to reproduce your problem, so you would increase the chance to get valuable response.
Best regards
Maxim Received on Mon Sep 19 2005 - 11:21:12 CDT