Upload Files To FTP in Oracle Forms D2k

Upload Files To FTP in Oracle Forms D2k

Use following procedure to upload files to Ftp.

PROCEDURE Ftp_Upload IS
    outfile text_io.file_type;
BEGIN
    -- write a ftp script
    outfile := text_io.fopen(‘D:\ftpsendsource.ftp‘, ‘w‘);
    text_io.put_line(outfile, ‘open yourftpurl‘);
    text_io.put_line(outfile, ‘youruser‘);
    text_io.put_line(outfile, ‘yourpassword‘);
    text_io.put_line(outfile,‘binary‘);
    text_io.put_line(outfile,‘send D:\Temp\Test1.txt‘);
    text_io.put_line(outfile,‘send D:\Temp\Test2.abc‘);
    text_io.put_line(outfile,‘disconnect‘);
    text_io.put_line(outfile,‘bye‘);
    text_io.fclose(outfile);
    host(‘cmd /c ftp -s:d:\ftpsendsource.ftp‘);
    exception
         when others then
           if text_io.is_open(outfile) then
                   text_io.fclose(outfile);
           end if;           
           message(sqlerrm);
END;

时间: 2024-12-15 19:45:29

Upload Files To FTP in Oracle Forms D2k的相关文章

Reading Csv Files with Text_io in Oracle D2k Forms

Below is the example to read and import comma delimited csv file in oracle forms with D2k_Delimited_String package. This package is available in D2kdlstr.pll library. To download D2kdlstr.Pll Click Here Create the following procedure in program unit

Pre-Query trigger in Oracle D2k / Oracle Forms

Pre-Query trigger in Oracle D2k / Oracle Forms DescriptionFires during Execute Query or Count Query processing, just before Form Builder constructs and issuesthe SELECT statement to identify rows that match the query criteria.Definition Level form or

Find Current Job Openings For Oracle Forms & Reports

Oracle Form & Reports developer jobs are always in demand, candidates who have Oracle D2k, Oracle Forms & Reports, PLSQL set of skills can find the job through the following links: http://jobsearch.naukri.com/oracle-forms-and-reports-jobs http://j

8 Most Required Examples Reference For Oracle Forms

Check the following 8 Links for best Oracle Forms examples with source code (Fmb files), which will work in any version of Oracle Forms. The examples are given for "Oracle Form's Triggers", "Hierarchical Trees", "Stacked Canvases&

How To Use XDOLoader to Manage, Download and Upload Files? (文档 ID 469585.1)

Applies to: BI Publisher (formerly XML Publisher) - Version 5.6.3 to 5.6.3 [Release 5] Information  in this document applies to any platform. Oracle XML Publisher - Version: 11.5.10 Checked for relevance on 18-MAR-2013 Goal How to use XDOLoader to Ma

Date Picker Calendar For Oracle Forms 6i

Giving date picker calendar option to user for date type fields in Oracle Forms. I am providing you the form (FoxCal.Fmx) and two libraries (General.plx and Calendar.pll). You can download these files by clicking below link: Download Form and require

How To Use XDOLoader to Manage, Download and Upload Files? (DOC ID 469585.1)

In this Document Goal Fix     Downloading Files   Uploading Files References Applies to: BI Publisher (formerly XML Publisher) - Version 5.6.3 to 5.6.3 [Release 5]Information in this document applies to any platform.Oracle XML Publisher - Version: 11

Displaying Window In Center In Oracle Forms 6i

Center window automatically  in Oracle Forms 6i, use the following procedure by passing window name as parameter: Example PROCEDURE auto_centre (pwn in varchar2) ISvw number := get_window_property(forms_mdi_window, width);vh number := get_window_prop

Writing On-Error Trigger In Oracle Forms

Suppose you want to handle an error in oracle forms and want to display custom error message for that error, but also you want to customize more for a particular error. For example there are many fields in form with required property is set to TRUE f