Groups | Blog | Home
all groups > sql server replication > march 2006 >

sql server replication : Replication generating snapshot - locking?



Saher
3/31/2006 5:08:02 AM
Hi,
We are looking at implementing Transactional replication for our production.

The initial set up did not work for us becuase the generation of snapshot
was having serious slowing down of production. We cannot take our site down
just for generating multiple 40G database's snapshots.

My questions for Transactional Replication:
1. Is taking down the production db a requirement for replication?
2. Can the locking/slowing down of snapshot generation be avoided?
3. How can we avoid the slowing down when generating snapshot?
4. Do we have to generate a snapshot everytime when we take production down
(for compiles, regular maintenance)

Michael Hotek
4/1/2006 11:11:54 PM
Which version of SQL Server?

4. Once replication is setup and running, you won't need another snapshot
unless you have to reinitialize something.

--
Mike
http://www.solidqualitylearning.com
Disclaimer: This communication is an original work and represents my sole
views on the subject. It does not represent the views of any other person
or entity either by inference or direct reference.


[quoted text, click to view]

Saher
4/3/2006 5:51:03 AM
SQL 2000 Enterprise edition.

What about schema changes? Do I not need another snapshot when schema is
changed?

[quoted text, click to view]
Hilary Cotter
4/3/2006 10:21:11 AM
If you are using SQL 2005 have a look at the initialize from backup option.
With SQL 2000 you could use the concurrent snapshot option, but I don't
believe this will work for a database as large as 40g.

1) not at all, but there will be substantial locking unless you use the
concurrent snapshot option. I recommend you either restore a copy of the
backup on your subscriber(s), or you find a quiet time to generate the
snapshot and use the option to 'use the snapshot files from the following
folder' option when creating your pull subscription. You can then copy the
snapshot to the subscriber and apply it there.
2) No, the concurrent option does not generate the locks that the default
option does, but it takes much longer to generate and apply.
3) Restore from a backup of the publication database on the subscriber and
fix constraints, identity columns, and triggers there for not for
replication. If you can't do this during a quiet period on the publisher
there will be sync issues which you will have to resolve, i.e. data in the
publisher which is not in the subscriber between the time you did the backup
and created the subscription.
4) No, the only time you need to is when you are creating new subscribers or
reinitializing.
--
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]

Saher
4/4/2006 9:01:03 AM
[quoted text, click to view]
reinitializing.

What about schema changes? Don't you need one when you create new tables or
modify the current structure?

TIA


[quoted text, click to view]
Hilary Cotter
4/6/2006 12:00:00 AM
Yes, but normally its only the table(s) which you are modifying.

--
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]

Saher
6/2/2006 6:31:02 AM
Yes, generate new snapshot?

How do we take care of schema changes? ( tables, index..)

[quoted text, click to view]
Saher
6/5/2006 12:31:01 PM
I have a bunch of tables to be added to my publisher that need to be
replicated. How can I do that without creating a new snapshot?

[quoted text, click to view]
AddThis Social Bookmark Button