Ending replication
Ending replication allows you to prepare for transitional activities in your business environment and allows you to move to the next step in your business processes.
About this task
Here are some examples of transitional activities in your business environment that may require an end to replication:
- Initiating a database backup.
- Performing a regularly scheduled reboot of your source database server.
- Quiescing your database in preparation for an upgrade.
- Weekly batch processing has just completed.
- Preparing for off-line maintenance activities.
If you are replicating data continuously with Continuous mirroring and business reasons arise that require an end to replication, CDC Replication provides multiple options that suit most business needs. If your business requirements dictate that replication must end at a particular point in your source database log because the target database must be in a known state when replication ends, you can choose from the following options:
- Current time or “Now”
- User-specified date and time
- User-specified log position
An example of a scenario that might require these options is that you are populating a reporting instance and you need stable (non-changing) data in your reporting instance during the day. At the end of the day when you shut down your application, you can choose one of the Scheduled End (Net Change) options to update the reporting instance with data from the current day as well.
If business requirements do not require a specific end point but do require a time frame for ending replication, CDC Replication provides escalating options (Normal, Immediate, and Abort) that end replication more rapidly at the expense of a slower start when resuming replication. For example, a routine end to replication with no particular urgency may require the Normal option, whereas a sudden business need to end replication rapidly may require the Abort option. A routine reboot of a SAN might be appropriate for the Normal option, whereas a sudden and unexpected hardware or application failure may require the Abort option.
If you initiate an end to replication and business reasons warrant a change in your preferred time frame, you can reschedule the end of replication by specifying a new date and time, a new position in the database log, or choose another option for ending replication.
Ending replication is also necessary if you want to update and make changes to your subscription by:
- Adding a table mapping to the subscription.
- Deleting a table mapping from the subscription.
- Temporarily removing a table mapping from the subscription (parking a table).
- Modifying mapping details such as source and target column mappings, derived columns, data translations, row and column selections, user exits, and so on.
- Updating the properties of a subscription when the structure of your source and/or target tables change.