How to initialize subscription through database backup

Source: Internet
Author: User

Initialize subscription:

1. Use the page to create a release item on the Publishing Server. Check "create snapshot now and make the snapshot available to initialize the subscription ". That is, @ immediate_sync = n'true'

2. Use the interface to modify the "allow initialization from backup file" of the release item to true. That is, @ allow_initialize_from_backup = n'true'

3. All the databases in the previous release have one full backup, and one transaction log is backed up by 'd: \ dbbak \ REPL. trn'

4. The Subscriber server restores a subscribe database in the norecovery state from the full backup of the Publishing Database, and then restores the published log backup, status recovery

5. Use the script command sp_addsubscription to add a subscription. Note the following parameters: @ sync_type = n' initialize with backup'. Two parameters must be added:

@ Backupdevicetype = 'disk', @ backupdevicename = 'd: \ dbbak \ REPL. trn' -- this is the directory of the Publishing Server and the log backup of the publishing library.

6. Do you seem to have to worry about not for replication? It is found that as long as a publishing item is created for the table, whether or not there is a subscription, the publishing table will be added with not for replicaction?

Refer:

How to: initialize a transactional subtasks from a backup with multiple backup files

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.