Active - Active or 2-way replication is very similar to 1-way replication. This is used when changes can be made to both databases and they both must be kept in sync.
It can be viewed as 2 x 1-way replication, with an outer (1-way) loop and an inner (1-way) loop as seen in the following diagram:
The differences between 1-way replication and 2-way replication are:
2-way replication can be configured through the setup wizard. To configure 2-way replication, two replication pairs have to be setup. The default in the setup wizard is to configure only 1 pair.
In this example we have setup two databases: orcl and test11202.
At step 2 in the setup wizard, the replication pairs are configured.
|
Add another replication pair, by typing "add" instead of "done". Choose the reverse source and target database:
|
Two replication pairs are now configured.