File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Uploading data from one database to another Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Uploading data from one database to another" Watch "Uploading data from one database to another" New topic
Author

Uploading data from one database to another

David Menfields
Greenhorn

Joined: Jun 28, 2005
Posts: 7
Hi

Can you provide me a high level idea to my urgent requirement.

Daily morning say 7 � clock, I need to upload the previous day records(deals) from one database to another database . That should be automatic.

I understand that i need the sql script inside a stored procedure which should be executed automatically. How to automate this?...any trigger can fire this ? or any java program can invoke this script daily?

Thanks.
Shailesh Chandra
Ranch Hand

Joined: Aug 13, 2004
Posts: 1076

Which Database are you using...

in order to insert/select into different database you need to have a db link to remote database.
for example if you have Oracle the you can create a job excute it at interval of one day to perform your task, for oracle you have also option of materialized view.

Another option would be perform task in java, make a program to select and insert from one DB to another DB, run it using thread or any other way to repeat at every 24 hour, or you can use some open source schedulr to do your job.Quratz is one schedular which to this task.

Shailesh


Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Uploading data from one database to another
 
Similar Threads
Parse?
Converting database scripts.
DATABASE AND XML
to parse or not to parse?
generate java script code on th fly