Skip to Main Content

Oracle Database Discussions

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!

Generate an output file and upload to FTP server

JamesRootMar 31 2014 — edited Apr 1 2014

Hi! I need help with the process of uploading a .CSV to a remote server of the company using SQL*Plus.

Here is what I have until now:

SET pagesize 50000

SET trimspool ON

SET feedback OFF

SET heading OFF

SET echo OFF

SET colsep '|'

SPOOL C:\temp\test.csv

SELECT MMUKID, MMITM, MMMCU, MMDSC1

    FROM testdta.F3411;

SPOOL OFF

SET echo ON

SET heading ON

SET feedback ON

The spool generates the csv correctly but I couldn´t find a code to upload that csv to the FTP server.

Any help will be appreciated.

Thanks in advance.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 29 2014
Added on Mar 31 2014
4 comments
1,131 views