Showing posts with label mirroring. Show all posts
Showing posts with label mirroring. Show all posts

Sunday, February 19, 2012

2005 Mirroring for Centralized Backup?

I am new to 2005 mirroring but have read a lot of documentation on it. I want to use mirroring to centralize a bunch of DBs to one location and then back them up from that central point. However, from what I've read since the mirror is kept in a "recovering state" it cannot be accessed directly. Does that mean I wont be able to backup the mirrors? If so, are there any work arounds or different strategies for this?

Thanks!

Craig

yes the mirror db will be in recovering state so that additional transactional logs cud be applied.........so you can't take backup or read the contents of the mirror db.......only option is you can take a snapshot of the mirror db and read through the contents of it........refer,

http://msdn2.microsoft.com/en-us/library/ms175511.aspx

snapshot is only read-only so you cannot alter the db in any ways

|||

Thanks for the quick reply.

It also looks like from this link, that the snapshot cannot be backed up either. (Look at the CONS section)

http://www.simple-talk.com/sql/database-administration/sql-server-2005-snapshots/

Do you know this to be true?

|||yes you are 100% right, we cannot backup the database snapshot........you can use it only for reporting purposes..........|||

Why dont you consider Snapshot or Transactional Replication for this purpose ? I strongly beilive using Transactional / Snapshot Replication could resolve the problem of Centralised backups again depends on the scenario

HTH

Vishal

|||

I may have my terminology wrong but I think thats what we discussed above. Deepak says we cant backup a database snapshot. I believe the transactional replication or "High Protection" mode as 2005 calls it, will leave the database in a "restoring" mode so you cannot access the database in any way, including a backup.

Please do tell if you know anything different or if I am confused!

Thanks,

Craig

|||Craig you have misinterpreted what Visha had said....we were discussing about database mirroring....in that the mirror db will be in recovering state and cannot read its contents nor backup the mirror db....if you want to read the contents you can go for database snapshots but it cannot be backed up as you rightly said......Vishal is talking about Replication in sql 2005 one of which is snapshot replication,transactional replication....etc..

for database mirroring you can refer,
http://deepakinsql.blogspot.com/ > just scroll till the end to read through the contents about mirroring
http://deepakinsql.blogspot.com/2007/07/how-to-configure-database-mirroring.html

for replication refer,
http://technet.microsoft.com/en-us/sqlserver/bb331775.aspx

feel free to clear your doubts......

thanxxxxxxxxx
|||

I had no idea there was a difference between replication and database mirroring!

Looks like replication is a bit more involved. I'm trying to find some decent step by step guides for replication but cant find much. Let me know if you have any good resources for setting it up!

Thanks again for your help.

|||

Found a good article - but again this doesnt sound like what I want. Says its a read only copy. I'm going to give it a shot and I'll let you know.

http://www.informit.com/articles/article.asp?p=169612&seqNum=2

Transactional Replication

Transactional replication involves copying data from the publisher to the subscriber(s) once and then delivering transactions to the subscriber(s) as they occur on the publisher. The initial copy of the data is transported by using the same mechanism as with snapshot replication: SQL Server takes a snapshot of data on the publisher and moves it to the subscriber(s). As database users insert, update, or delete records on the publisher, transactions are forwarded to the subscriber(s).

To make sure that SQL Server synchronizes your transactions as quickly as possible, you can make a simple configuration change: Tell it to deliver transactions continuously. Alternatively, you can run synchronization tasks periodically. Transactional replication is most useful in environments that have a dependable dedicated network line between database servers participating in replication. Typically, database servers subscribing to transactional publications do not modify data; they use data strictly for read-only purposes. However, SQL Server does support transactional replication that allows data changes on subscribers as well.

|||For Documentation on Replication the best source is SQL Server 2005 Books Online

Saturday, February 11, 2012

2005 Database Mirroring & Witness

I'm devlving into 2005 and specifically mirroring.

Having read the following article (
http://www.microsoft.com/technet/pr...5/dbmirror.mspx ),
is mirroring a sensible option as it indicates that it should not be
used in a production environment, yet the SQL2005 seminars I've been to
indicate that this is a worthy option.

Do we also need a witness server, or can this be done (sensibly) with
two SQL2005 servers ?

Currently we have 2xSQL2000 (clustered) servers and a SAN for the data.
If we go down the route of mirroring, it looks like we can get rid of
the SAN and Cluster and use the mirroring instead.

Any advice on the pro's / cons would be appreciated.

Thanks

RyanRyan,

I haven't done too much with mirroring yet but

> Do we also need a witness server, or can this be done (sensibly) with
> two SQL2005 servers ?

It is physically possible to do this with 2 servers (in fact it is
physically possible to do it on 1 server) but it really doesn't make sense.
The server can only be live if it has a quorum (2 out of 3) agree that it is
the live server. If the primary server is one machine and the second
machine contains the mirror server and the witness server both and the
second machine goes off-line you have effectively taken the primary server
off-line as well since it will no longer have a quorum.

HTH,
John|||"Ryan" <ryanofford@.hotmail.com> wrote in message
news:1142346007.542792.217730@.e56g2000cwe.googlegr oups.com...
> I'm devlving into 2005 and specifically mirroring.
> Having read the following article (
> http://www.microsoft.com/technet/pr...5/dbmirror.mspx ),
> is mirroring a sensible option as it indicates that it should not be
> used in a production environment, yet the SQL2005 seminars I've been to
> indicate that this is a worthy option.

It's worth playing with.

BUT, it's beta. Which means if you use it in a production evironment and
something goes wrong, the amount of support that MS will provide is limited.

> Do we also need a witness server, or can this be done (sensibly) with
> two SQL2005 servers ?

Generally you should have a witness.

> Currently we have 2xSQL2000 (clustered) servers and a SAN for the data.
> If we go down the route of mirroring, it looks like we can get rid of
> the SAN and Cluster and use the mirroring instead.
> Any advice on the pro's / cons would be appreciated.
> Thanks
>
> Ryan|||What do we need licence wise for the witness server ? Will we be able
to use a standard licence ?|||You can use any edition for the witness.

--
Tom

----------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinpub.com
..
"Ryan" <ryanofford@.hotmail.com> wrote in message
news:1142422233.452068.120450@.z34g2000cwc.googlegr oups.com...
What do we need licence wise for the witness server ? Will we be able
to use a standard licence ?|||Ryan,

> What do we need licence wise for the witness server ? Will we be able
> to use a standard licence ?

The witness can be any edition of SQL Server 2005 including the free Express
Edition.

HTH,
John