How to load data from a .csv file, having different name, on daily basis using sqlldr [message #229433] |
Sat, 07 April 2007 14:56  |
shwetabhandari02
Messages: 5 Registered: April 2007
|
Junior Member |
|
|
Hi All,
I get a .csv file on daily basis in a directory on UNIX box. Its name changes daily.
I can load the data from the .csv file into a temp table in oracle when I hard code the name of the csv file. However, as per the requirement I need to load the data from any .csv file which comes in that particular directory.
Using *.csv in ctl file does'nt work.
How else can I do this?
Your help would be highly appreciated.
Thanks and Regards,
Shweta Bhandari
|
|
|
|
Re: How to load data from a .csv file, having different name, on daily basis using sqlldr [message #229475 is a reply to message #229434] |
Sun, 08 April 2007 14:26   |
shwetabhandari02
Messages: 5 Registered: April 2007
|
Junior Member |
|
|
Thank you Mahesh,for the response and advice not to report postings. As I am a new member I did not realize this.
The option of using "INFILE *"would not work for me as need the data only from a CSV file that would be present in a particular directory. Now there would be other files as well apart from CSV file.
However, I have resolved the issue. What I am doing now is saving a copy of the CSV file with a constant name daily and then moving the original file to another directory.
Thanks and Regards,
Shweta
|
|
|
|