Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heterogeneous database connection

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

like image 245
Azuan Avatar asked Jun 28 '12 14:06

Azuan


People also ask

What is the meaning of heterogeneous database?

A heterogeneous database system is an automated (or semi-automated) system for the integration of heterogeneous, disparate database management systems to present a user with a single, unified query interface.

What is heterogeneous database in Oracle?

Heterogeneous Services is a component within the Oracle database server that is required to access a non-Oracle database system. The term "non-Oracle database system" refers to the following: Any system accessed by PL/SQL procedures written in C (that is, by external procedures)

What is heterogeneous database replication?

The term heterogeneous replication refers to replicating data-changing operations between heterogeneous data servers (that is, data servers that are supplied by different vendors).

Which database runs on the heterogeneous operating system?

Oracle Gateways The core of Oracle's Gateway solutions is the Oracle database Heterogeneous Services (HS) feature. Heterogeneous Services provides transparent and generic gateway technology to connect to non-Oracle systems.


1 Answers

Heterogeneous databases is a tough area and there's a lot of research going on. You can't expect an out of the box solution. It vastly depends on the databases, schemas, data, security concerns involved. To get you going, read this paper: A Multidatabase System as 4-Tiered Client-Server Distributed Heterogeneous Database System

If you are free in choosing the scenario, then make your life as easy as you can:

  • use the same schema on all databases
  • use plain JDBC access for each database (you will learn more this way and you don't have to deal with ORM framework bloat)
  • just use one single, simple table at the beginning
  • build up the required components for a distributed scenario (check the linked paper and search the internet for details)
  • put everything together
  • enjoy
like image 67
MicSim Avatar answered Oct 04 '22 15:10

MicSim