If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > Java FTP to Oracle

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-29-06, 14:08
flick flick is offline
Registered User
 
Join Date: Apr 2003
Posts: 15
Java FTP to Oracle

So I'm have some sqlPlus processes that are being called through a java app, but I need to push up the original files prior to processing. Is there an easy method to ftp'ing up files to oracle through java or should I just write a bat file process and call that instead?
Reply With Quote
  #2 (permalink)  
Old 06-29-06, 14:47
dimis2500 dimis2500 is offline
Registered User
 
Join Date: Jan 2005
Posts: 362
Give us more informations do you mean triggers - procedures or what?
You may write code as stored procedures or triggers in the oracle db and call them from java or use jdbc
triggers
tutorial.
Reply With Quote
  #3 (permalink)  
Old 07-03-06, 09:48
flick flick is offline
Registered User
 
Join Date: Apr 2003
Posts: 15
In oracle I have stored procedures that take a file and load it into a table and then compares the new table vs a production table. The differences between the tables get pushed into the prod table. My java front-end app is currently calling the oracle stored procedures, but I need a quick and easy method to take the original files off a client machine and ftp them up to the oracle database.

What is the easiest method of ftp'ing up the content files to oracle? Is there an easy java or oracle method of ftp'ing?
Reply With Quote
  #4 (permalink)  
Old 07-03-06, 17:33
dimis2500 dimis2500 is offline
Registered User
 
Join Date: Jan 2005
Posts: 362
It seems to me that you want a java method that
1. load each "row" from file
2.Call a stored procedure that return true (for example) if elements exist at db or false if do not and
3.If false load to prod. table the elements.
Maybe there are other ideas too.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On