Click here to Skip to main content
15,886,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two different databases (11g & 12C) tables. Two different tables have same data

After some days 11g DB table added some different data and 12C DB table also added some different data.


But i need to copy from 11g DB Table to 12C DB Table and 12C DB Table to 11g DB Table.

What the query for this issue.

What I have tried:

I Don't know any thing about this issue, Please help me.
Posted
Updated 12-Sep-17 0:14am
Comments
Graeme_Grant 12-Sep-17 6:00am    
I WANT to win lotto or Powerball.

You know that we can not see your code from here right? If you are looking for someone to write it for you, this is not the place. However, there is a website with programmers that will do it for you: Hire Freelancers & Find Freelance Jobs Online - Freelancer[^]

1 solution

There is no "single query" which will allow you to "merge" two different databases, particularly if they have both had data added separately: it will depend on the database tables themselves, and if there is any dependant data in other tables. It will also depend on the datatypes you have used as a primary key: if you used auto incrementing integers, then you have a big problem as the ID's will have repeated. You also need to consider deletions and updates when you merge the tables - this isn't a trivial problem that you can just go "do this" and it'll be sorted.

The first thing you need to do though, is get a solution in place that removes one of the databases to make sure this doesn't have to be done every week.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900