SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


log shipping setup advise needed


log shipping setup advise needed

Author
Message
_api_
_api_
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 25
Hi, I was wondering if experts here can help with an advise :-)

Let's say I have a site A with 2 servers - PROC1 (where data processing happens) and WEB1 (used as web server database). There is a database MYDB that is replicated (both transactional and snapshot) from PROC1 to WEB1.

I have a new remote site B that I want to use as a backup. So I would need PROC2 and WEB2 to be kept in sync with PROC1 and WEB1.

Am I correct that the only option for this to work is to have 2 log shipping setup: one for PROC1-> PROC2, and another for WEB1->WEB2? And if site A having troubles I would need to bring both DBs on site B online and then setup replication there (PROC2->WEB2). Plus of course I'd need to start collecting logs for PROC2, WEB2 to get ready for roles reversal (to switch back to site A as primary if/when needed).

The thing is both PROC and WEB database are quite large and ideally it would be nice to have 1 log shipping set only (PROC1->PROC2) and have replication set for PROC2->WEB2. But it seems like there is no way to have replication set on a database that is in STANDBY or NORECOVERY.

Or perhaps there is some other way?

Thank you
durai nagarajan
durai nagarajan
Hall of Fame
Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)Hall of Fame (3.5K reputation)

Group: General Forum Members
Points: 3539 Visits: 2784
Can you give it in more clear way?

As far as i understand , you want to implement log shipping and replication.

I can tell you one thing from log shipping you can log ship to more than one server in that case. so you can ship from proc1 to proc2 , web1 and web2

I have no idea in replication so i dont how to go about replication and log shipping of same DB's.

Regards
Durai Nagarajan
PravB4u
PravB4u
Old Hand
Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)

Group: General Forum Members
Points: 377 Visits: 603
Hi,
I think the better solution would be to have log shipping enabled on both Proc1 & Web1 to site B and then enable replication only if you want to put serves on site B on production, as per as i know you can not enable replication on databases on Standby or Norecovery mode.

hope this helps.



Praveen D'sa
MCITP - Database Administrator 2008
http://sqlerrors.wordpress.com
_api_
_api_
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 25
Praveen,

yes, it looks like that's not just a better solution, but the only one.

I've setup a test environment with 2 pairs of servers in different locations and checked different approaches. Unfortunately the replication needs to update replication status in syssubscriptions (and probably other) system table in the database under replication. And since it is in read-only mode while being the target of log shipping, it naturally fails.

I wonder why this status details wouldn't be stored (and updated) in Distribution database - after all most of replication info and data is there.

So I'm back to square one and have to move same data twice.

Regards,
Alex
MysteryJimbo
MysteryJimbo
SSCertifiable
SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)

Group: General Forum Members
Points: 5243 Visits: 15346
You are right in that you cannot replicate from a logshipped database.

a) You could logship both databases
b) If the dbs could be mirrored and if needed to be readable, create a snapshot
c) Logship PROC1 to PROC2, add another subscriber to PROC1 to WEB2 (this may complicate things if you bring site 2 online)
MysteryJimbo
MysteryJimbo
SSCertifiable
SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)SSCertifiable (5.2K reputation)

Group: General Forum Members
Points: 5243 Visits: 15346
_api_ (11/20/2013)

I wonder why this status details wouldn't be stored (and updated) in Distribution database - after all most of replication info and data is there.



The commands are marked as REPLICATE in the transaction log and these are written locally so the engine needs to have to knowledge of which commands to mark.
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