Best heterogeneous database connection practice?
-
I am a student, major in database management. On my 5th semester, we are required to create a system using heterogeneous database. We must use at least 4 different database. My choice would be MySQL, MS SQL Server, Oracle and PostgreSQL since these are among the most popular and matured database. The problem is that so far, no group has ever manage to connect to 4 different database. I have heard that using Java hibernate spring could connect to different database, but I am trying to connect to different database on the database level, not on the application level. Using something like Oracle's database link. But as far as I know, MySQL does not have this feature. If in the industry, what are the common ways to deal with heterogeneous database? Or is there any standard library for me to do this? I hope to get some guide on how should I deal with heterogeneous database using the industry standard
-
Answer:
The heterogeneous database connection is only theoretically feasible, but unfeasible in practice because of the extremely poor performance and stability. Sometimes the connection even cannot be established. In the level of application program, Java doesnât provide the standard class library for structured data computing. Neither can Hibernate perform any heterogeneous operations except mapping the database table to a Java object. I recommend esProc, which is a programming language designed and positioned as an intermediate layer between the database and the application program. esProc is programmed in Java too. This means it provides for Java the class library for structured data computing. It can connect to all the databases you mentioned in the question, and work with datasources like db2, nosql, hdfs, txt and excel and so on. Besides, It can perform common operations like group, filter and join, and can process big data as well. Please refer to @http://blog.raqsoft.com/?p=840
David Jin at Quora Visit the source
Other answers
It's unclear to me what the actual difficult part is in your question. If you know how to connect to 1 database then just connect to another. Pseudo code: MySQLConn myconn = MySQL.connect(blah); PgConn pgconn = PgSQL.connect(blah);
Ronald Duncan
Related Q & A:
- What is the best data model and database systems to store social graph?Best solution by Quora
- How would I structure database the best?Best solution by Stack Overflow
- What is the best practice for free space for a SQL server database drive?Best solution by Database Administrators
- What is the best key-value database?Best solution by Stack Overflow
- What is the definition of homogeneous equilibrium and heterogeneous equilibrium?Best solution by wiki.answers.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.