all groups > sql server replication > august 2006 >
You're in the

sql server replication

group:

Replicating A Large Database


Replicating A Large Database mrprice
8/6/2006 6:26:01 PM
sql server replication:
We have a fairly large database that we attempting to setup transactional
replication on. Just to restore a copy of this database took almost a day.
What is the best method for establishing transactional replication on a large
database? Should we set it up and run the initial snapshot the way we would
any other database or is there a better (faster) method?

Thanks,
Mark
Re: Replicating A Large Database Paul Ibison
8/7/2006 12:00:00 AM
Mark,
what version are you using? If SQL Server 2000 then you can do a nosync
initialization. If SQL 2005 then there is the option of 'replication support
only'. Please see these articles for more info:
http://www.replicationanswers.com/NoSyncInitializations.asp
http://www.replicationanswers.com/NoSyncOn2005.asp
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com

Re: Replicating A Large Database Hilary Cotter
8/7/2006 5:35:59 AM
In SQL 2000 this is hard to do, but you can do a no-sync subscription the
moment the backup completes, then restore the backup on the subscriber,
start up your distribution agent and do validations to determine how out of
sync you are.

In SQL 2005 you can do an initialize from backup.

--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

Re: Replicating A Large Database mrprice
8/7/2006 11:04:38 AM
We are using SQL 2000. I think the big question is, how long will it take to
snapshot and transfer a database that is almost 250GB in size? The two
systems are right next to each other, and both are brand new and have 4
processors.

Thanks,
Mark

[quoted text, click to view]
Re: Replicating A Large Database mrprice
8/7/2006 2:07:01 PM
So I've never done this before. The steps are as follows?

1. Turn off distribution agent
2. Run snapshot agent
3. Compress files (ZIP) in local REPLDATA
4. FTP to share on subscriber
5. Start distribution agent on publisher with –AltSnapshotFolder parameter
pointing to share on subscriber?

Please let me know if I’ve missed anything or if I’m way off base?

Thanks,
Mark

[quoted text, click to view]
Re: Replicating A Large Database Paul Ibison
8/7/2006 8:06:00 PM
Mark - using SQL Server 2000, in the case of a very large database, I'd run
the snapshot on the server, manually compress the snapshot files (>2GB won't
work with compressed snapshot folders out of the box), FTP it to the
subscriber then use an alternative snapshot location on the subscriber to
apply the snapshot. This is a variation of the nosync initialization
process.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com



Re: Replicating A Large Database Paul Ibison
8/8/2006 9:19:39 AM
This looks right apart from the last bit which should be the
@alt_snapshot_folder parameter of sp_addpullsubscription_agent or the wizard
will prompt you to browse to the folder.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com





AddThis Social Bookmark Button