使用Oracle PL / SQL将文件写入SFTP [英] Write a file to SFTP using Oracle PL/SQL

查看:574
本文介绍了使用Oracle PL / SQL将文件写入SFTP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个PL / SQL过程来连接到FTP服务器。我可以写一个文件到该FTP服务器。使用相同的代码我试图连接到SFTP服务器,但它失败了。如何使用PL / SQL连接到SFTP?

解决方案

您可以尝试商业从DidiSoft提供的ORA_SFTP 软件包:

  connection_id:= ORA_SFTP.CONNECT_HOST(... 
ORA_SFTP.UPLOAD(connection_id,data,'remote_file.dat');

免责声明:我为DidiSoft工作


I wrote a PL/SQL procedure to connect to an FTP server. I am able to write a file to that FTP server. Using the same code I tried to connect to an SFTP server, but it failed. How do I connect to SFTP using PL/SQL?

解决方案

You can try the commercial ORA_SFTP package provided from DidiSoft:

connection_id := ORA_SFTP.CONNECT_HOST(...
ORA_SFTP.UPLOAD(connection_id, data, 'remote_file.dat');

Disclaimer: I work for DidiSoft

这篇关于使用Oracle PL / SQL将文件写入SFTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆