Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Passing file name dynamically to sql loader ctl file

user2138419Oct 28 2009 — edited Nov 5 2009
Hi,

I am new to scripting and I have a complex requirement involving writing a script.

Requierment:
I need to upload a CSV file from a FTP server into oracle table using SQL Loader. The file name resembles like APF0912312359.csv represents 31-DEC-2009 23:59 and there will be multiple files in same day indicated by differnt timestamp as its filename. Once I load a file using SQL loader, I need to move the file to another directory for archival.

Since the sql loader ctl file has a fixed file name, I would like to know how I can pass the file name dynamically to ctl file to load a new file every time it runs.


Any help is greatly appreciated..


Bye

Sudheer

Edited by: user2138419 on Oct 28, 2009 4:08 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 3 2009
Added on Oct 28 2009
4 comments
11,690 views