Previous |
Next |
After suspending the replication activity of a master group (Suspending Replication Activity for a Master Group), you can remove master sites from the master group. To remove a master site from a master group:
Note: You must not drop replicated objects without first removing them from the master group.
In Enterprise Manager, connect to the Database Instance Home page as the replication administrator.
Click Data Movement.
Under the Advanced Replication section, click Manage.
The Administration Overview page appears.
Under the Multimaster Replication section, click the number link next to Master Groups to open the Master Groups page.
Select the target master group that contains the master site that you want to remove and click Edit.
The General subpage of the Edit Master Group page appears.
Click Master Sites.
The Master Sites subpage of the Edit Master Group page appears.
Select the master sites that you want to remove from the master group and click Remove.
After you have removed the master sites, generate replication support for all master group tables (Generating Replication Support for All Master Group Tables), optionally apply the administrative requests (Applying Administrative Requests) that result from your changes at all master sites, and then resume replication activity for the master group (Resuming Replication Activity for a Master Group).
If you would like to use APIs to remove a site without quiescing, refer to Special Circumstances for more information.
API Equivalent: DBMS_REPCAT.REMOVE_MASTER_DATABASES
Special Circumstances
The sites being removed from a master group do not need to be accessible. When a master site will not be available for an extended period of time due to a system or network failure, you might decide to drop the master site from the master group. However, because the site is unavailable, you most likely cannot suspend replication activity for the master group. You can use the REMOVE_MASTER_DATABASES
procedure in the DBMS_REPCAT
package to remove master sites from a master group, even if the master group is not quiesced.
If this is the case, you are responsible for:
Cleaning up the deferred transaction queue
Removing any data inconsistencies
Specifically, the next time that you suspend replication activity for a master group, you must complete the following steps as soon as possible after the unavailable master sites are removed:
Suspend replication activity for a master group. See Suspending Replication Activity for a Master Group for instructions.
Remove all deferred transactions from each master site where the destination for the transaction is a removed master site. See Removing Deferred Transactions for instructions.
Remove all deferred transactions from removed master sites, as soon as they become available.
Re-execute or delete all error transactions at each remaining master site. See Removing Deferred Transactions for instructions.
Ensure that no deferred or error transactions exist at each remaining master. If you cannot remove one or more deferred transactions from a remaining master, execute the DBMS_DEFER_SYS.DELETE_TRAN
procedure at the master site using SQL*Plus.
Ensure that all replicated data is consistent. Use the DBMS_RECTIFIER_DIFF
package to determine and fix differences.
Resuming replication activity for a master group. See Resuming Replication Activity for a Master Group for instructions.
Note: After dropping an unavailable master site from a master group, you should also remove the master group from the dropped site to finish the cleanup, as soon as the dropped site becomes available.