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

Home -> Community -> Usenet -> c.d.o.server -> Re: Automate Load of Multiple csv files

Re: Automate Load of Multiple csv files

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Fri, 27 Feb 2004 10:28:14 -0800
Message-ID: <1077906458.293779@yasure>


April wrote:

> Hi,
>
> I have been looking into the automated and scheduled import of csv
> files (or files containing insert statements) into Oracle 7.3. I see
> that UTL_FILE is used to open and read files. However, the file name
> is required. I would have multiple files sitting on a network share
> of which all would have to be imported and then the processed file
> either written to as processed or moved to another location. Is there
> some way to read file names using PL/SQL so that I could pass in the
> file name to UTL_FILE.FOPEN? Also this would have to be a scheduled
> job to occur regularly?
>
> Any ideas?
> Thanks,
> April

Send a "header" file with a known file name that contains the names of files to be imported. Use DBMS_JOB to schedule reading the header file and running the UTL_FILE imports.

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Fri Feb 27 2004 - 12:28:14 CST

Original text of this message

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