Home » RDBMS Server » Server Administration » How to load table by datafile name?
How to load table by datafile name? [message #63582] Mon, 18 October 2004 17:21 Go to next message
LEE SHIN YOUNG
Messages: 4
Registered: October 2004
Junior Member
Hi! How are you? How to load table by datafile name?

For example

if  today is 20041015,  Read

INFILE 'E:TPD71M$AUD_20041015.txt'

if  today is 20041014,  Read

INFILE 'E:TPD71M$AUD_20041014.txt'

So,it can be possible? Thank you!! 

    
Re: How to load table by datafile name? [message #63592 is a reply to message #63582] Tue, 19 October 2004 07:38 Go to previous message
croK
Messages: 170
Registered: April 2002
Senior Member
you can build that file dinamically taking the date value from the system value
for example, on unix can do something like:
echo INFILE /'E:/TPD71M/$AUD_ŽdateŽ.txt/' >> file

then, cat file2 >> file
where file2 has the rest of the control file for sqlldr

is it clear?

Best luck
Oracle consultant and remote DBA for hire.
Previous Topic: Database link 9i - RDB
Next Topic: unzip
Goto Forum:
  


Current Time: Fri Sep 27 06:19:42 CDT 2024