Im an Oracle guy looking for some help here.
I have to go out to another server and FTP a file back to my UNIX box. I then use SQL*Loader to load the file into an Oracle table. Thats the easy part.
The part that is messing me up is how to I find the files that I have not loaded yet? The file has a name like file_20071015000000.log the number there being a date. Now there is only one file a day but sometime the file is late and I need to load to days worth of logs.
I dont expect anyone to write this for me but can someone point me in the write direction on how to do the following.
1) Know which was the last file name I loaded.
2) Know what files I need to get.
Now once I get it onto my unix box I can do the rest. Im thinking I should write something like "The last file I loaded was file_20071012000000. Today is 10/16 so I should look for
file_20071013000000
file_20071014000000
file_20071015000000
file_20071016000000
Suggestions?
I have to go out to another server and FTP a file back to my UNIX box. I then use SQL*Loader to load the file into an Oracle table. Thats the easy part.
The part that is messing me up is how to I find the files that I have not loaded yet? The file has a name like file_20071015000000.log the number there being a date. Now there is only one file a day but sometime the file is late and I need to load to days worth of logs.
I dont expect anyone to write this for me but can someone point me in the write direction on how to do the following.
1) Know which was the last file name I loaded.
2) Know what files I need to get.
Now once I get it onto my unix box I can do the rest. Im thinking I should write something like "The last file I loaded was file_20071012000000. Today is 10/16 so I should look for
file_20071013000000
file_20071014000000
file_20071015000000
file_20071016000000
Suggestions?