Solved

One-database limit on database mirroring?

Posted on 2006-10-30
5
276 Views
Last Modified: 2008-03-10
A colleague has suggested that SQL 2005 database mirroring only supports one database per server. I cannot find any reference to this limitation but want to make sure. Was it a limitation on the original release or perhaps even a beta release?


Thanks

0
Comment
Question by:AaronAbend
[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
  • 3
5 Comments
 
LVL 28

Accepted Solution

by:
imran_fast earned 250 total points
ID: 17833804
No its not true

but mirroring will be one on one. means one database will be mirrored to one database.
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 17833819
he probably means that you cannot mirror the database to the same server/instance.

0
 
LVL 28

Assisted Solution

by:imran_fast
imran_fast earned 250 total points
ID: 17833895
Multi-Database Issues
Many applications make use of multiple databases on a single server. One application may reference multiple databases, or perhaps many applications all make use of several databases. However, database mirroring works with a single database at a time. You need to take this into account when designing mirroring into your database architecture.

If you desire the High Availability mode, your best fit will be when one application matches up with one database. Then if an automatic failover occurs, the application no longer requires any databases on the principal server. Consider what might happen if you have multiple databases on a single server and operate in the High Availability mode. If there is a physical server outage, a SQL Server instance failure, or a communication failure, all the databases would automatically fail over to the standby server, and their mirrors would then become new principal databases. If the witness is visible, the application could connect to the new principal databases. But what would happen if one of the databases incurred a torn page from a disk fault, so that only the one database failed over? In that case, it might be impossible to get the application to connect to all the right databases.

Therefore applications that rely on multiple databases will not be good candidates for the High Availability mode of database mirroring. You may be able to use safety OFF, with the realization that you will not have automatic failover, but you will have a high-performance method of keeping another database server in sync.
0
 
LVL 28

Expert Comment

by:imran_fast
ID: 17833910
The above topic shows you can do mirroring on multiple database per server but it is not recommended to do mirroring when your application spans multiple database.
0
 
LVL 10

Author Comment

by:AaronAbend
ID: 17833913
I found a powerpoint from a Microsoft presentation with the words "High availability for a single database" but the audio indicates that mirroring is done  on a "database by database basis" as distinct from a "server by server" basis. I think this is the source of the confusion. I think Imran's answer is best. Thanks for the quick reply.

for the benefit of those who find this thread... here is the Microsoft presentation with that slide...
http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032282290&EventCategory=5&culture=en-US&CountryCode=US

and here is a discussion of mirroring multiple databases
http://www.microsoft.com/technet/prodtechnol/sql/2005/technologies/dbm_best_pract.mspx#ECMAE 


0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

726 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