Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQL*Loader Question
On Tue, 17 Feb 1998 23:51:07 GMT, Alan Cannon <acannon_at_webzone.net> wrote:
>Does anyone know how to (or if it's possible at all) use SQL*Loader to load
>a delimited ASCII file into a table without loading all the fields from the
>input file. It seems like this should be possible to me.
>
>
We just had a similar problem and were unable to find an option for this, we ended up using an awk script as a filter:
(Assuming '|' delimited)
-- stripflds.awk --
BEGIN {
FS="|"
fieldsToSkip[5] = "skip" fieldsToSkip[8] = "skip" fieldsToSkip[15] = "skip"
bash$> mknod impnode p (or mknod -p impnode in some cases)
bash$> sqlldr user/pass myload.ctl data=impnode
bash$> awk -f stripflds.awk myinputfile > impnode
bash$> rm impnode
If someone does know how to have sqlldr skip a field, I would like to know.
Hope this helps
-- -- Keith Moore President KMA Computer Solutions, Inc. -- /*----C/C++--Java--VB--Pro*C--SQL--OCI--Java--Delphi--ODBC--COBOL-----* * When the project must be saved at all costs: * * KMA Computer Solutions, Inc. Project Troubleshooting/Recovery * *---------Linux---AIX---HPUX---SYSV---Novell---NT---OS/2---'95-------*/Received on Wed Feb 18 1998 - 00:00:00 CST
![]() |
![]() |