Roland,

There are 2 techniques you can use. The first is what I call a 'dynamic
control file' - other posters have given you examples of that one, using
sed.

The next is create a 'loop loader'; essentially a script file that fires off
sqlldr for each loadable file. Here's an overly simple example:
export FILESPEC=/d31/datafiler/sema/incoming/konkurrenter.*
for FILENAME in $( ls ${FILESPEC} )
do
  sqlldr ${USER-PW} control=${CTL} data=${FILENAME}
log=${LOGPATH}/${FILENAME}.log
done

Both techniques are explained in my IOUG paper "SQL*Loader CAN Do That!". A
Windows example is also given. If you can't get to the IOUG web site and
would like a copy of the paper, send me an email.

David Scott
[EMAIL PROTECTED]

>  From: [EMAIL PROTECTED]
>  Date: Thu, 11 Sep 2003 14:12:49 +0200
>  Subject: Sqlloader question

> Hallo,

> Anyone whom could tell me if it is in an sqlloader possible to write for
instance this if you dont know the exactly name of file.
> infile '/d31/datafiler/sema/incoming/konkurrenter.*'

> If there are going to be files with different extensions fo rinstance the
first time a file is going to be inserted will be konkurrenter.txt.1
> and the next time the file will have the name konkurrenter.txt.2 etc.

> How should I handle this?

> Thanksin advance

> Roland
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: David Scott
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).

Reply via email to