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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Question about sql loader - help

Re: Question about sql loader - help

From: Yechiel Adar <adar76_at_inter.net.il>
Date: Wed, 19 Jun 2002 07:28:51 -0800
Message-ID: <F001.004813A6.20020619072851@fatcity.com>


You can run sql program:
spool xx.ctl;
select 'load data infile xx.dat truncate into table xx (field1 , f' || sysdate || , field3)'
from dual;
spool off;
exit;

Then run sqlldr control=xx.ctl

This will create the ctl file with the correct date.

Yechiel Adar
Mehish
----- Original Message -----
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> Sent: Wednesday, June 19, 2002 10:28 AM

> Hallo all you gurus,
>
> I have a question:
>
> Is it possible that every time the sql loader script runs change the
field names to the field names specified in the file to be loaded.: The field names should be different dates.
>
> The next time the script sqlloader run sit will be a new field name, which
means a new date as the field name.
> Any one who can give me some help and an example of a control file which
does this thing.
>
> Thanks in advance
>
> Roland
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author:
> INET: Roland.Skoldblom_at_ica.se
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Yechiel Adar
  INET: adar76_at_inter.net.il

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (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).
Received on Wed Jun 19 2002 - 10:28:51 CDT

Original text of this message

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