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

TLOG GROWING VERY LARGE Expand / Collapse
Author
Message
Posted Saturday, December 22, 2012 4:12 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Saturday, November 8, 2014 4:17 AM
Points: 206, Visits: 509
Hi,

I have implemented mirroring (high safety without automatic failover) and replication (snapshot replication) simaltaneously on the same database. But my tlog started growing very large which cause backup file to be grown as well. I take full backup everyday once.

What can I do to prevent tlog from growing? Is there any inconsistency with my backup plan?

Please help me to sort out the problem.

Regards,
Akbar
Post #1399668
Posted Saturday, December 22, 2012 5:36 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 5:17 AM
Points: 40,450, Visits: 36,905
shohelr2003 (12/22/2012)
I take full backup everyday once.


That's not enough.

Please read through this - Managing Transaction Logs



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 #1399672
Posted Saturday, December 22, 2012 9:04 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Saturday, November 8, 2014 4:17 AM
Points: 206, Visits: 509
That's not enough.


Please suggest me what can I do to prevent tlog from growing. In addition to, I need your support to develop an effective backup plan. What activities should my backup plan include?

I am also reading your two links.

Please help me.
Post #1399727
Posted Saturday, December 22, 2012 11:16 PM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, October 21, 2014 4:06 AM
Points: 976, Visits: 550
Taking full backup once in a day is not enough, you need to take backup of transaction log as well to truncate the log file. Once the transaction log backup is taken, the inactive portion of the log (all its log records) will be captured in the log backup.

Link given by Gail Shaw is good one to understand how the transaction log works.


Regards,
Ravi.
Post #1399735
Posted Sunday, December 23, 2012 12:57 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Saturday, November 8, 2014 4:17 AM
Points: 206, Visits: 509
Imagine that I take one full backup at the beginning of the day and later on take four log backups at two hours interval and again take another full backup at the end of the day.

How is this backup plan? Please suggest me.
Post #1399738
Posted Sunday, December 23, 2012 2:43 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 5:17 AM
Points: 40,450, Visits: 36,905
shohelr2003 (12/22/2012)
That's not enough.


Please suggest me what can I do to prevent tlog from growing. In addition to, I need your support to develop an effective backup plan. What activities should my backup plan include?


Please read the articles I referenced.



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 #1399741
Posted Sunday, December 23, 2012 2:44 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 5:17 AM
Points: 40,450, Visits: 36,905
shohelr2003 (12/23/2012)
Imagine that I take one full backup at the beginning of the day and later on take four log backups at two hours interval and again take another full backup at the end of the day.

How is this backup plan? .


Does it allow you to restore the DB and meet your RPO and RTO requirements? If so, it's fine. If not, it's inadequate.
There's no one-size-fits-all backup plan, it has to be tailored to meet the requirements for recovery for that DB.



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 #1399742
Posted Sunday, December 23, 2012 11:14 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Yesterday @ 10:55 PM
Points: 1,573, Visits: 2,635
Taking full backups do not truncate the logs, log backup does. I have faced this issue sometime back and log backups at appropriate intervals resolved the issue as well. You can check 'log_reuse_wait_desc' in sys.databases. Go through the link Gilas has mentioned, it will help to identify and solve your issue.
Post #1399759
Posted Sunday, December 30, 2012 9:54 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Saturday, November 8, 2014 4:17 AM
Points: 206, Visits: 509
Thanks All. My problem has been solved. Now I take log backup regularly. It prevents tlog to be grown abnormally.

Special thanks to Gail Shaws' links.
Post #1401282
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse