Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: [NEWBIE] SQLLOADER - Load from multiple files

Re: [NEWBIE] SQLLOADER - Load from multiple files

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Tue, 31 Aug 2004 17:37:18 -0700
Message-ID: <1093999096.499849@yasure>


Andy wrote:

> Daniel and DB,
>
> Why don't you dynamically create the control file at runtime? For example:
>
> echo "LOAD DATA" > dyn_control.ctl
> for datafile in `ls *.dat`; do
> echo "INFILE $datafile" >> dyn_control.ctl
> done
> echo "INTO TABLE table1 ...." >> dyn_control.ctl
>
> Andy

There is a demo of dynamically created control files at http://www.psoug.org

Click on Morgan's Library
Click on UTL_FILE.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Tue Aug 31 2004 - 19:37:18 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US