If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Database Synchronisation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-20-02, 08:12
adam.cadman adam.cadman is offline
Registered User
 
Join Date: Aug 2002
Posts: 2
Database Synchronisation

Hi,

I have 2 oracle databases that I need to keep synchronised in real-time. They both have different data structures and updates can be made to both databases.

I am currently thinking that I could use triggers on tables in both databases with a central log table that both databases can access.

Could anybody give me advice on whether this would be a good idea? Are there any alternative methods that I could investigate other than triggers?

Thanks for any help

Adam
Reply With Quote
  #2 (permalink)  
Old 08-20-02, 20:01
clio_usa clio_usa is offline
Registered User
 
Join Date: Apr 2002
Location: California, USA
Posts: 482
Cool

Where this "central log table will reside" - on third database ?

Seems to me you need to configure replication from one of the databases to the another of the data to be synchronized. Replication by itself is based on triggers. So why inventing your own home-grown replication API?

Or may be if you post more details, I can understand better what you are trying to do.


Hope that helps,

clio_usa
OCP - DBA

.
.
.
Reply With Quote
  #3 (permalink)  
Old 08-21-02, 06:52
adam.cadman adam.cadman is offline
Registered User
 
Join Date: Aug 2002
Posts: 2
Hi

I need to invent my own replication APIs because the two data structures that are used in either of the databases are totally different. Therefore, I cannot simply replicate the data, I need to do some translation on the data before I attempt the update to the second database.

e.g. A system updates a row of a table in DB1. The trigger captures this event and calls an API which then determines which tables in DB2 need to be updated to maintain the integrity across the two tables. This API then updates DB2 with the update.

The log table would probably sit on DB2. This would be needed in order to determine when the update has been achieved.

Hope this helps clarify what I am aiming to do. I realise that the architecture of this solution is not great but we have very little choice over that.



Thanks in advance for any assistance

Adam
Reply With Quote
  #4 (permalink)  
Old 01-14-03, 09:13
mingy mingy is offline
Registered User
 
Join Date: Dec 2002
Posts: 8
Woosh I'm currently working on the same problem as you do! the only difference is that i'm trying to solve this problem using postgresql! maybe we can help each other! just contact me under mingy@chello.at if you'd like to see my work!

i would welcome any contribution from our side!

mingy
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On