简体   繁体   English

如何从Oracle连接到Java程序

[英]How connect to Java program from Oracle

I want to copy a folder and everything that is included in it to a FTP by oracle. 我想通过oracle将文件夹及其包含的所有内容复制到FTP。

I found out this work is a little bit hard with Oracle so I decided to write a program in Java and copy the file with a Java program but I dont have any idea about how I can make connection between an Oracle program and Java. 我发现使用Oracle这项工作有些困难,因此我决定用Java编写程序并使用Java程序复制文件,但是我不知道如何在Oracle程序和Java之间建立连接。

I want to submit the source folder and destination folder and my Java program easily do the copy for me and if the copy completed inform my oracle program(form). 我想提交源文件夹和目标文件夹,我的Java程序很容易为我完成复制,如果复制完成,则通知我的oracle程序(窗体)。

would you please advise me should I use Java for FTP my files or it would be better I use Oracle forms technology for transferring my files? 您能否建议我将Java用于FTP文件,还是将Oracle表格技术用于文件传输更好?

I would so appreciate if you provide me a sample in java that I see how I can transfer my files to a ftp address.(if you have any sample in Oracle it would be even more better) 如果您在Java中提供了一个示例,希望能将文件传输到ftp地址,我将不胜感激。(如果您在Oracle中有任何示例,那就更好了)

Thanks 谢谢

See the PL/SQL Utility Library page 请参阅“ PL / SQL实用程序库”页面

http://code.google.com/p/plsql-utils/ http://code.google.com/p/plsql-utils/

Specifically the "Transfer files (FTP) using PL/SQL" section, there you will find the code you need to do this in PL/SQL (no Java required). 特别是“使用PL / SQL传输文件(FTP)”部分,您将在PL / SQL中找到执行此操作所需的代码(无需Java)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM