Home » RDBMS Server » Server Utilities » dynamic infile
icon13.gif  dynamic infile [message #120116] Tue, 17 May 2005 17:10 Go to next message
whited05
Messages: 10
Registered: May 2005
Location: Lansdale, PA
Junior Member
Hello all I have a sqlldr ctl file that I need to be able to dynamically create the file name based on the date.

i.e. infile 'order_inventory_200505.dat'

In the file example I need to append 200505 to the 'order_inventory.dat

is there a way to do this? can I use a shell variable?

Thanks,
dan Cool
Re: dynamic infile [message #120138 is a reply to message #120116] Tue, 17 May 2005 21:49 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
I dont understand the requirement.
Your filename is order_inventory.dat.
Do you want to change the name to order_inventory_200505.dat and load it?
Re: dynamic infile [message #120187 is a reply to message #120138] Wed, 18 May 2005 06:00 Go to previous message
girish.rohini
Messages: 744
Registered: April 2005
Location: Delhi (India)
Senior Member
HI

Wats the OS u r using?

If UNIX use:
date +%Y%m for generating the reuired date format.

If windows use DOS date format utility "doff". U may need to download this.

Geberate the date in desired format and append the .dat file name with this date format.
I hope that'll solve the issue..
Previous Topic: sqlldr data issue
Next Topic: Import failed from 9.2 to 8.1.7 ( URGENT )
Goto Forum:
  


Current Time: Wed Jul 03 07:52:55 CDT 2024