Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Tlog backup on princple server? Expand / Collapse
Author
Message
Posted Wednesday, December 14, 2011 5:07 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 3:58 AM
Points: 1,061, Visits: 3,020
Hi,

one of the production server TLog backup taken every 30 minutes. the same server going to implement HA for database mirroring.

Mirroring transfer TLog to mirror server from principal server, In this case
what frequency TLog backup to be set in principal server after implemented mirroring.

Pl.let me know once completed database mirroring between principal and mirror server, Is it really required or possibility to take TLOG backup at principal server?

thanks
ananda
Post #1221547
Posted Wednesday, December 14, 2011 5:17 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 6:53 PM
Points: 1,932, Visits: 1,589
You can take Log Backups on Primary Server.

Dev

Devendra Shirbad | BIG Data Architect / DBA | Ex-Microsoft CSS (SQL 3T)
*** Open Network for Database Professionals ***

LinkedIn: http://www.linkedin.com/in/devendrashirbad
Post #1221553
Posted Wednesday, December 14, 2011 5:20 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 6:53 PM
Points: 1,932, Visits: 1,589
Sorry missed the second part of question.

You should keep taking log backup at regular interval for Transaction Logs truncation. 30 minutes interval is fine.



Dev

Devendra Shirbad | BIG Data Architect / DBA | Ex-Microsoft CSS (SQL 3T)
*** Open Network for Database Professionals ***

LinkedIn: http://www.linkedin.com/in/devendrashirbad
Post #1221557
Posted Wednesday, December 14, 2011 5:22 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 3:58 AM
Points: 1,061, Visits: 3,020
Dev (12/14/2011)
You can take Log Backups on Primary Server.


ok, If i have taken log backup every 30 min at principal server then what is frequency for Tlog apply at mirror server?

thanks
ananda
Post #1221560
Posted Wednesday, December 14, 2011 5:29 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 6:53 PM
Points: 1,932, Visits: 1,589
ananda.murugesan (12/14/2011)
Dev (12/14/2011)
You can take Log Backups on Primary Server.


ok, If i have taken log backup every 30 min at principal server then what is frequency for Tlog apply at mirror server?

thanks
ananda


What is the operation mode High Safety / High Performance?


Dev

Devendra Shirbad | BIG Data Architect / DBA | Ex-Microsoft CSS (SQL 3T)
*** Open Network for Database Professionals ***

LinkedIn: http://www.linkedin.com/in/devendrashirbad
Post #1221564
Posted Wednesday, December 14, 2011 5:31 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 6:53 PM
Points: 1,932, Visits: 1,589
FYI...

A database mirroring session runs with either synchronous or asynchronous operation. Under asynchronous operation, the transactions commit without waiting for the mirror server to write the log to disk, which maximizes performance. Under synchronous operation, a transaction is committed on both partners, but at the cost of increased transaction latency.

There are two mirroring operating modes. One of them, high-safety mode supports synchronous operation. Under high-safety mode, when a session starts, the mirror server synchronizes the mirror database together with the principal database as quickly as possible. As soon as the databases are synchronized, a transaction is committed on both partners, at the cost of increased transaction latency.

The second operating mode, high-performance mode, runs asynchronously. The mirror server tries to keep up with the log records sent by the principal server. The mirror database might lag somewhat behind the principal database. However, typically, the gap between the databases is small. However, the gap can become significant if the principal server is under a heavy work load or the system of the mirror server is overloaded.

In high-performance mode, as soon as the principal server sends a log record to the mirror server, the principal server sends a confirmation to the client. It does not wait for an acknowledgement from the mirror server. This means that transactions commit without waiting for the mirror server to write the log to disk. Such asynchronous operation enables the principal server to run with minimum transaction latency, at the potential risk of some data loss.


Dev

Devendra Shirbad | BIG Data Architect / DBA | Ex-Microsoft CSS (SQL 3T)
*** Open Network for Database Professionals ***

LinkedIn: http://www.linkedin.com/in/devendrashirbad
Post #1221567
Posted Sunday, December 18, 2011 10:34 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, September 18, 2014 10:01 PM
Points: 1,287, Visits: 1,122
In mirroring Transaction log backup will not be applied on the secondary server. However the uncommitted/commited transaction will be automatically applied to the secondary database server log. To manage the size of the transaction log in the primary server, we need to have transaction log backup at scheduled interval.

Read the article from techet.

http://technet.microsoft.com/en-us/library/cc917680.aspx


-- Babu
Post #1223620
Posted Monday, December 19, 2011 3:09 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 1:14 PM
Points: 39,977, Visits: 36,340
ananda.murugesan (12/14/2011)
Dev (12/14/2011)
You can take Log Backups on Primary Server.


ok, If i have taken log backup every 30 min at principal server then what is frequency for Tlog apply at mirror server?


You're thinking of log shipping.

In database mirroring the log records are copied across by the mirroring functionality either before the transaction commits (synchronous) or shortly after (asynchronous). You have to take log backups to keep the log from growing and to ensure you can restore to an earlier point if necessary. The log backups aren't copied across and applied, that's log shipping.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1223701
Posted Monday, December 19, 2011 3:11 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 1:14 PM
Points: 39,977, Visits: 36,340
Dev (12/14/2011)
FYI...

A database mirroring session runs with either synchronous or asynchronous operation....


If you're going to quote someone else's work (in this case Books Online), the correct thing to do is to reference it properly. Otherwise you're implying that it's your own work.
In this case. http://msdn.microsoft.com/en-us/library/ms189852.aspx



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1223703
Posted Monday, December 19, 2011 3:45 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Tuesday, August 19, 2014 6:53 PM
Points: 1,932, Visits: 1,589
GilaMonster (12/19/2011)
Dev (12/14/2011)
FYI...

A database mirroring session runs with either synchronous or asynchronous operation....


If you're going to quote someone else's work (in this case Books Online), the correct thing to do is to reference it properly. Otherwise you're implying that it's your own work.
In this case. http://msdn.microsoft.com/en-us/library/ms189852.aspx


It was not my intension (never thought it). I didn’t want OP to be lost in BOL so I identified what he needed and pasted it here.

p.s. hope I didn’t violet any copyright


Dev

Devendra Shirbad | BIG Data Architect / DBA | Ex-Microsoft CSS (SQL 3T)
*** Open Network for Database Professionals ***

LinkedIn: http://www.linkedin.com/in/devendrashirbad
Post #1223714
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse