简体   繁体   English

如何使用 Java 将数据从 Oracle 数据库传输到 DB2

[英]How to Transfer Data From Oracle database to DB2 Using Java

In our project on daily basis, We have to transfer all the data from the Oracle database to DB2 database.在我们每天的项目中,我们必须将所有数据从 Oracle 数据库传输到 DB2 数据库。 Oracle database has three schemas and multiple tables inside one schema. Oracle 数据库具有三个模式和一个模式内的多个表。

We have to develop this data transfer utility using the Java program.我们必须使用 Java 程序开发这个数据传输实用程序。

Could anyone please help me, what should be my approach.任何人都可以帮助我,我的方法应该是什么。

I would consider using Federation to pull the data to Db2 using SQL.我会考虑使用联合来使用 SQL 将数据拉到 Db2。 https://www.ibm.com/support/knowledgecenter/en/SSEPGG_11.1.0/FedServer_product_landing.html https://www.ibm.com/support/knowledgecenter/en/SSEPGG_11.1.0/FedServer_product_landing.html

If you are using Db2 11 (for LUW), heterogeneous federation (ie "Federation with all other data sources, including Oracle") is included in the Advanced Db2 editions.如果您使用的是 Db2 11(用于 LUW),则高级 Db2 版本中包含异构联合(即“与所有其他数据源的联合,包括 Oracle”)。 https://www.ibm.com/support/knowledgecenter/en/SSEPGG_11.1.0/com.ibm.db2.luw.licensing.doc/doc/r0053238.html https://www.ibm.com/support/knowledgecenter/en/SSEPGG_11.1.0/com.ibm.db2.luw.licensing.doc/doc/r0053238.html

The supported federated sources are listed here http://www-01.ibm.com/support/docview.wss?uid=swg27049211此处列出了受支持的联合源http://www-01.ibm.com/support/docview.wss?uid=swg27049211

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

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