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: storing Infile name into a column from SQL Loader

Re: storing Infile name into a column from SQL Loader

From: Sybrand Bakker <gooiditweg_at_sybrandb.verwijderdit.demon.nl>
Date: Fri, 21 May 2004 13:04:08 +0200
Message-ID: <oeora05925o7lpmrq1fpnoap1oojprluv2@4ax.com>


On 21 May 2004 02:23:39 -0700, rvenkat_at_gmail.com (R.Venkat) wrote:

>Hi,
> i have a requirement that i need to load data of the same format
>from different datafiles. now to distinguish between these records,i
>need to put the infile name also into a column named FILENAME in the
>target table. how do i do that?
>Thanks,
>~Venkat

Use sed or any other stream editor to add the filename as a separate column to all individual records, prior to loading the file. Or load the files in individual tables, one per file and merge them afterwards.
Sql*loader can't do this.

--
Sybrand Bakker, Senior Oracle DBA
Received on Fri May 21 2004 - 06:04:08 CDT

Original text of this message

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