Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 High Availability (2005)
 Database Mirroring

Author  Topic 

kennetu
Starting Member

33 Posts

Posted - 2009-09-02 : 10:46:50
I recently configured SQL Server 2005 database mirroring in one of my company's production environments. How can the mirror server take the role of the Principal server if the principal server crashes.
Thanks; I appreciate your prompt response.

Best regards,
Kenneth.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-09-02 : 15:31:42
http://weblogs.sqlteam.com/tarad/archive/2008/05/04/60585.aspx

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

kennetu
Starting Member

33 Posts

Posted - 2009-09-03 : 04:39:18
Get me right now. I have finished the configuration of the database mirroring without a witness server option, and it is working very fine. My question goes this way: If the principal server fails, can the mirror server fail over automatically? If not, how can the mirror server take over the role of the principal server explicitly?

I need your urgent reply.

Kenneth.
Go to Top of Page

ScottWhigham
Starting Member

49 Posts

Posted - 2009-09-03 : 07:02:28
quote:
Originally posted by kennetu

I have finished the configuration of the database mirroring without a witness server option, and it is working very fine. My question goes this way: If the principal server fails, can the mirror server fail over automatically? If not, how can the mirror server take over the role of the principal server explicitly?
No, without a witness server it will not perform automatic failover. From BOL:
quote:
Automatic failover

This requires high-safety mode and the presence of the mirror server and a witness...
And Tara's link shows you how to do the manual failover.

More info: http://technet.microsoft.com/en-us/library/cc917681.aspx

========================================================

I have about 1,000 video tutorials on SQL Server 2008, 2005, and 2000 over at http://www.learnitfirst.com/Database-Professionals.aspx
Go to Top of Page

kennetu
Starting Member

33 Posts

Posted - 2009-09-03 : 10:24:25
Thanks so much. I know that automatic failover is only possible when an witness server is involved.
Which configuration/scripting can be used to get notified whenever the principal server crashes, in order to reduce downtime?

Go to Top of Page

ScottWhigham
Starting Member

49 Posts

Posted - 2009-09-03 : 13:34:38
You would want to set up an alert for that: http://msdn.microsoft.com/en-us/library/cc966392.aspx

========================================================

I have about 1,000 video tutorials on SQL Server 2008, 2005, and 2000 over at http://www.learnitfirst.com/Database-Professionals.aspx
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-09-04 : 12:22:12
We don't use database mirroring alerts to check for the principal server crashing. Instead we use tools to monitor our environments. For SQL Server, Windows, and clustering, we use MOM to monitor our environments. The applications have custom monitoring in place, so they would also catch the situation where the database server was no longer available.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -