0

A text file is being created in FTP Server when an interface runs,

I need to check whether the created have any records,if it has values then i must be sending the same text file through mail using PL/SQL.

Thanks a million in advance :)

4

1 回答 1

0

Tim Hall 构建了一个很棒的 ftp 包。 http://www.oracle-base.com/dba/scripts.php -> 其他 -> ftp.pkb 和 ftp.pks

对于电子邮件问题,您可以使用 Oracle 包 UTL_MAIL。

您需要一个在 FTP 服务器上执行搜索的作业才能找到文本文件。

我喜欢记录日志,所以我喜欢的任务方式是:1)读取 ftp 目录并搜索文本文件 2)将文本文件名、内容和 sysdate 存储在表中 3)删除/重命名文件ftp 服务器,所以你不会再次加载它 4)检查内容是否不为空(从表中) 5)如果它不为空,发送电子邮件 6)在表中标记数据行,它已被检查

希望能帮助到你。

brgds,出生

于 2013-04-19T20:53:28.973 回答