Solved

SQL Server Mirrored DB failed over, replication completely down

Posted on 2014-01-31
2
434 Views
Last Modified: 2014-02-01
Hello Experts,

SQL Server 2008 R2 - I am trying to transition off of Enterprise to Standard...  We just don't use any enterprise features, and I'm pretty sure replication is built into standard as well, mirroring is (just not async mirroring).

I dug my own grave on this one, I did not read BP on mirroring + replication.

My original setup, did not include mirroring of my database, and replication was fine.
Here is my original setup:
HostA - Principal+Dist+Pub  (Sql 2008 R2 Ent)
HostB - Subscriber (Sql 2008 R2 Ent)


I recently setup a mirror partner (HOSTC), and then failed over to that mirror partner.  I also setup a new HostD to replace HostB, but also take over Dist functions since I will have a mirror setup.  I simply ASSUmed that I would have to setup replication all over again from scratch since I was not transferring the Distribution DB over.   Mirroring is working great.  Replication is nogo, across the board.  I setup HostD as my distributor on HostC, reading that I would need to now share a distributor since I had mirroring enabled.
Here is my new setup:
HostA - MirrorPartner (Sql 2008 R2 Ent)
HostB- Subscriber (Sql 2008 R2 Ent)
HostC- Principal+Pub (Sql 2008 R2 Std)
HostD-Dist (Sql 2008 R2 Std)


I'm now locked out of any kind of replication operations on HostC.  My old publications still show up now on HostC, but I am unable to delete them, unable to create new subscriptions (using HostD as Dist).  I get many errors about "Could not find stored proc ''.  (Microsoft SQL Server, Error: 2812) "

I'm not even sure what data I can collect to give you experts, but any help would be appreciated.  I see a lot of results for "What to do before you enable mirroring", but not a lot on if things go wrong.    Some things I've gathered.

On one of my DBs that is mirrored, and had replication all setup and working in original setup (but rep is not working now, as are all of my DBs)
exec sp_helpdistributor;   Shows HostD as my distributor
I can view it's properties, but I cannot delete the publication.

I've attempted to "Disable Publishing and Distribution..." realizing it will delete all publication+subscriptions (Great!  That's what I wanted, I'll do that!)  And I get a similar error to the above, could not find stored procedure.  I also get "Distributor has not been installed correctly", which is odd, because I'm trying to disable it, remove it entirely.

I have created a publication on a newly mirrrored DB on HostC (it was never setup for replication to begin with).  I began a subscription to it from HostD, waiting on it to finish.
0
Comment
Question by:kzsigo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 

Accepted Solution

by:
kzsigo earned 0 total points
ID: 39825891
In addition,

I'm preparing to fail the databases back to HostA (the original, and seemingly current Dist).
I'll disable distribution+publishing there
and then fail back over to HostC unless anyone has any wise words before that happens.
0
 

Author Closing Comment

by:kzsigo
ID: 39826524
I solved this by doing the above, my intuition was right.  My belief is that I used the same server as the publisher+Distributor, that when I failed over to mirror partner, is why I was unable to modify any replication settings.
0

Featured Post

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sql query help 15 52
point in time restore in SQL server 26 43
Building JSON Results Table FROM DB 9 33
SQL - Ordering Supervisor Hierarchy 2 9
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question