I need to generate a txt from oracle and put it into a ftp server, I already make the st for build de file but is it possible to transfer it to a ftp directly from the SP???
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you sure can (not sure what version of Oracle you are on but as long as it is 9i++ you ought to be safe).
You will need to utilize a combination of UTL_FILE (to write the file) and then utl_tcp (to do the actual ftp’ing of the file).
This link covers this approach (and also introduces a few others) in good detail with examples.
http://www.oracle-base.com/articles/misc/FTPFromPLSQL.php