Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> SQL Loader
The question has been posed to me... what are the advantages/disadvantages
of specifying what the datatypes really are in the control file over what we
have been doing (making all of the types in the control file char).
char way:
LOAD DATA
APPEND
INTO TABLE REASON(
ACCT_ID position(1:5) char, DSBL_CLM_STAT_CD position(6:8) char, REASON_CD position(9:11) char, REASON_DESC position(12:46) char
datatype way:
LOAD DATA
APPEND
INTO TABLE cov_group_form
admin_cd POSITION(1:3) CHAR, acct_no POSITION(4:8) CHAR, cov_grp_id POSITION(9:13) INTEGER EXTERNAL, form_cd POSITION(14:28) CHAR, edn_dt POSITION(30:37) DATE ('yyyymmdd'), status POSITION(29:29) CHAR, form_ttl POSITION(38:67) CHAR
Are there any speed advantages of one over the other?
Is the char version more maintainable than the external integer version?
I have been reading the fReInDlY manual and now know all of the types you CAN put in, but not the advantages of doing it one way over the other.
Help?
April
begin 666 InterScan_Disclaimer.txt
M0U-502 R,# R.B @26UA9VEN92!T:&4_at_4&]S<VEB:6QI=&EE<R$-"D-O<G!O
M<F%T92!3>7-T96US($%N;G5A;"!5<V5R<R!!<W-O8VEA=&EO;B!#;VYF97)E
M;F-E#0I7:&5N.B!/8W1O8F5R(#(M-"P@,C P,@T*5VAE<F4Z($-A<FEB92!2 M;WEA;&4_at_4F5S;W)T(" @3W)L86YD;RP_at_1DP@(%5300T*1F]R(&UO<F4@:6YF M;W)M871I;VX_at_9V\@=&\@=W=W+F-S961G92YC;VT-"@T*#0H-"E1H92!I;F9OM<FUA=&EO;B!C;VYT86EN960@:6X@=&AI<R!E+6UA:6P@:7,@<W1R:6-T;'D@ M8V]N9FED96YT:6%L(&%N9"!F;W(@=&AE(&EN=&5N9&5D('5S92!O9B!T:&4@ M861D<F5S<V5E(&]N;'D[(&ET(&UA>2!A;'-O(&)E(&QE9V%L;'D@<')I=FEL M96=E9"!A;F0O;W(@<')I8V4@<V5N<VET:79E+B @3F]T:6-E(&ES(&AE<F5B M>2!G:79E;B!T:&%T(&%N>2!D:7-C;&]S=7)E+"!U<V4@;W(@8V]P>6EN9R!O M9B!T:&4@:6YF;W)M871I;VX_at_8GD@86YY;VYE(&]T:&5R('1H86X@=&AE(&EN M=&5N9&5D(')E8VEP:65N="!I<R!P<F]H:6)I=&5D(&%N9"!M87D_at_8F4@:6QL M96=A;"X@($EF('EO=2!H879E(')E8V5I=F5D('1H:7,@;65S<V%G92!I;B!E M<G)O<BP@<&QE87-E(&YO=&EF>2!T:&4@<V5N9&5R(&EM;65D:6%T96QY(&)Y M(')E='5R;B!E+6UA:6PN"@I#;W)P;W)A=&4_at_4WES=&5M<RP_at_26YC+B!H87,@ M=&%K96X_at_979E<GD@<F5A<V]N86)L92!P<F5C875T:6]N('1O(&5N<W5R92!T
M:&%T(&%N>2!A='1A8VAM96YT('1O('1H:7,@92UM86EL(&AA<R!B965N('-W M97!T(&9O<B!V:7)U<V5S+B @5V4_at_86-C97!T(&YO(&QI86)I;&ET>2!F;W(@ M86YY(&1A;6%G92!S=7-T86EN960_at_87,@82!R97-U;'0@;V8@<V]F='=A<F4@M=FER=7-E<R!A;F0_at_861V:7-E('EO=2!C87)R>2!O=70@>6]U<B!O=VX@=FER M=7,@8VAE8VMS(&)E9F]R92!O<&5N:6YG(&%N>2!A='1A8VAM96YT+@T*#0H- #"@T*
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: April Wells INET: awells_at_csedge.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Aug 20 2002 - 08:38:24 CDT