Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


View Synchronization Status Error


View Synchronization Status Error

Author
Message
dba.sql29
dba.sql29
Valued Member
Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)

Group: General Forum Members
Points: 69 Visits: 1222
Hi Experts

I have added a new publisher to my Publication database but the process is just looping and in status I am seeing this message

The concurrent snapshot for publication 'Databasename_Tables_Pub' is not available because it has not been fully generated or the Log Reader Agent is not running to activate it. If generation of the concurrent snapshot was interrupted, the Snapshot Agent for th

and when I am looking Snapshot agent its looping at [20%] Bulk copied 100000 rows from [dbo].[Table Name] (part 1 of 16) (100000 total rows copied)

Please help

Thanks in Advance.
Attachments
Replication Error.JPG (10 views, 69.00 KB)
Neeraj Dwivedi
Neeraj Dwivedi
SSC Eights!
SSC Eights! (953 reputation)SSC Eights! (953 reputation)SSC Eights! (953 reputation)SSC Eights! (953 reputation)SSC Eights! (953 reputation)SSC Eights! (953 reputation)SSC Eights! (953 reputation)SSC Eights! (953 reputation)

Group: General Forum Members
Points: 953 Visits: 1323
It looks like you have duplicate rows in MSArticles and MSSubscriptions. I would suggest to run the following commands:-

delete distribution..MSarticles where publisher_db = 'YourPublisherDB'

delete distribution..MSsubscriptions where publisher_db = 'YourPublisherDB'

and then setting up replication again.
dba.sql29
dba.sql29
Valued Member
Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)

Group: General Forum Members
Points: 69 Visits: 1222
What I did I took a backup from Publication server and restored it to Subscription server. The database size match's and everything looks fine but when I build replication the snap shot agent failed to create full snapshot but all the article is showing in publication property's. In this case what are my options. One more question I have as that is what is the best way to delete replication and rebuild it, if you can give me some ideas I will appreciate it. Like which services should be stopped first, is that from distribution side first then the Publication ? and is that OK to delete Snapshot Folder which are old and the old jobs in distribution database.


Thanks a lot for all the help in advance...
dba.sql29
dba.sql29
Valued Member
Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)Valued Member (69 reputation)

Group: General Forum Members
Points: 69 Visits: 1222
What I did I took a backup from Publication server and restored it to Subscription server. The database size match's and everything looks fine but when I build replication the snap shot agent failed to create full snapshot but all the article is showing in publication property's. In this case what are my options. One more question I have as that is what is the best way to delete replication and rebuild it, if you can give me some ideas I will appreciate it. Like which services should be stopped first, is that from distribution side first then the Publication ? and is that OK to delete Snapshot Folder which are old and the old jobs in distribution database.


Thanks a lot for all the help in advance..
Neeraj Dwivedi
Neeraj Dwivedi
SSC Eights!
SSC Eights! (953 reputation)SSC Eights! (953 reputation)SSC Eights! (953 reputation)SSC Eights! (953 reputation)SSC Eights! (953 reputation)SSC Eights! (953 reputation)SSC Eights! (953 reputation)SSC Eights! (953 reputation)

Group: General Forum Members
Points: 953 Visits: 1323
When you want to setup replication from back up, you do not have to run snapshot agent, because you are already doing the work of snap shot agent by restoring the back up to subscriber.

I would suggest that you drop the publication & subscription and follow the folling steps.

• Set up Publication.
• Set transaction retention to 120 hours for distribution
• Disable the distribution clean up job on the distribution DB
• Setup Publication and set the "allow initalization from backup files" option for the publication
• Make a full backup of the database on the publisher DB
• Restore the full backup on the subscriber DB
• Ran the following stored procedure on the publication database:
-- Run this on publisher DB
sp_addsubscription
@publication ='Publication Name', --Publication Name
@subscriber='servername', --servername of subscriber
@destination_db='SubscriberDB Name', -- Database name where you want to replicate the data
@sync_type = 'initialize with backup',
@backupdevicetype = 'disk',
@backupdevicename = 'Location where the backup was placed' --Location where the back up was placed on subscriber.

go
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search