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: Filenames using SQL Loader

Re: Filenames using SQL Loader

From: rs <info_at_bytelife.com>
Date: Fri, 14 Mar 2003 20:50:04 +0100
Message-ID: <3e72327d$0$11515$7a0f4ed3@energis-news-env>


hello Jason,

here's a shell script; it gets the data from a staging table and then uploads it to the main table using a procedure - which passes the filename to the main table (or logging table) !

  export LOADFILE= xxx.dat
  sqlload usernm/$1 control=loadxx.ctl data=$LOADFILE

  sqlplus usernm/$1 <<-eof
  set serveroutput on
  exec uploadproc('$LOADFILE')
  eof

cheers,

     Roelof Schierbeek

R.Schierbeek, DBA

Jason Rowski <jasonrowski_at_yahoo.com> wrote...
>
> I have a daily batch job which is loading orders from 230 files. I am
> using SQLLDR to load these order files. I need to store the name of
> the filename in the column FILE_NAME in the order table IPX_ORDERS.
> How can I do this ?
>
> Thanks
> Jason
Received on Fri Mar 14 2003 - 13:50:04 CST

Original text of this message

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