MIRRORING
MIRRORING
MIRRORING
Database mirroring is used for high availability and also used to disaster
recovery.
IN mirroring the basic process is take a full backup of Principal database and
restored it is secondary database with no recovery option
When ever an application server inserts the records in to the principal database
1st application server writes the records in Log buffer and it sents to the log
file
High Availability
High Safety
High Performance
High Availability
Application server writes the transaction in the principal server database log
file.
It sends the transaction to the mirror server log file then the mirror server sends
the acknowledgement to the principal server
Then the principal server commits the transaction to the application server.
High Safety
In High safety we need 2 server to configure mirroring pricipal server & mirror
server
In this mode there is no automatic failover is happen only forced failover is
applicable
1st the transaction sends to principal server then it writes in log file and
transaction goes to the mirror server log file then it sends the acknowledgement to
the principal server saying that
it receives the transaction log file.
High Performance
In high performance mode the application server sends the transaction to the
principal server log file.
It doesnot wait for the mirror server to acknowldgement the transactions.
It immmediately commits the transaction to the application server.
In high performance mode forced failover is applucable.
In high performance mode send queue and redo queue will be configured in db mirror
Send Queue:
While sending the log records from the principal to the mirror, if the log records
can�t be sent at the accuracy or rate at which they are generated, a queue builds
up at the principal.
This is known as the send queue. The send queue does not use extra storage or
memory.
It exists entirely in the transaction log of the principal. It refers to the part
of the log that has not yet been sent to the mirror.
Redo Queue:
While applying log records on the mirror, if the log records can�t be applied at
the rate at which they are received, a queue builds up at the mirror.
This is known as the redo queue. Like the send queue, the redo queue does not use
extra storage or memory.
It exists entirely in the transaction log of the mirror. It refers to the part of
the hardened log that remains to be applied to the mirror database to roll it
forward.
-----------------------------------------------------
Mirroring Requirements
-------------------------------------------------------------
a) Principal and Mirror are running on sql server 2008 versions we need to upgrade
it to 2008R2
1st check the mirror is running in which mode (Synchronous or Asynchronous mode).
If the mirroring is configured in syncronous mode then we need to change to
Asynchronous mode.
Pause the mirroring and upgarde the mirror server 1st and resume the mirroring and
change the Asynchronous mode to synchronous mode
2.) Increases the data protection(distater recovery).If you use database mirroring
in async mode,then the purpose is typically disaster recovery methodology.
----------------------------------------------
Licensing options
-------------------