Solved

Update Trigger for Replication

Posted on 2003-10-24
4
781 Views
Last Modified: 2013-12-11
Hi,

I am a german student writing his thesis on distributed databases. The actual DB is an Oracle 9i Enterprise Edition Release 2.

I have one table, that should be maintained on all sites. It would need updating "on commit", regardless if a new record is inserted, updated or deleted. Each site should get its own trigger, so that updates/inserts/deletes are possible on every site, with immediate replication on the other sites. However, mutations on this particular table are rather seldom, that's why I chose "triggers" over "advanced replication". I am looking for a more robust, potentially asynchronous solution.

Anything could help me ;-)

Regards,
Lars
0
Comment
Question by:Lars_Biederstedt
4 Comments
 
LVL 2

Expert Comment

by:sdrozd
ID: 9651245
well, in this case you need to set up database links to the other databases and then write a trigger that will fire on insert,update,delete to do the same DML on other nodes.
Then you repeat this for all other sites. What else do you need to know?
0
 

Author Comment

by:Lars_Biederstedt
ID: 9669979
Thanks,

but I tried triggers first, but got really confused.
i discovered Oracle Streams and it seems to be a better solution.

Lars
0
 
LVL 22

Expert Comment

by:Helena Marková
ID: 10279168
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

PAQ/Refund.

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Henka
EE Cleanup Volunteer
0
 

Accepted Solution

by:
amp072397 earned 0 total points
ID: 10347420
PAQed, with points refunded (180)

amp
Community Support Cleanup Moderator
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows how to recover a database from a user managed backup

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now