Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
transaction log file growth
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
 
View profile   Translate to Translated (View Original)
 More options 5 Nov, 15:00
Newsgroups: microsoft.public.sqlserver.programming
From: Mike Lamar
Date: Thu, 05 Nov 2009 07:00:56 -0800
Local: Thurs 5 Nov 2009 15:00
Subject: transaction log file growth
Hello,
I've got a database, approx 45GB, in full recovery mode. I run nightly full backups at 1:00AM and transaction log backups every 4 hours starting at midnight. Lately one of the tlog backups has grown to about 80% of the database size. The other log backups average 200-500MB each. At first I thought the Midnight log backup was not completing before the database backup started. I move the midnight backup and confirmed that is is completing successfully. The database backup completes successfully as well.

However, now the first log backup after the database backup is having the size issue. What impact does the full database backup have on the transaction log? Should I run a DBCC SHRINKFILE on the log file after each backup?

Thanks

EggHeadCafe - Software Developer Portal of Choice
ASP.NET DATASET Vs ASP RECORDSET SPEED TRIALS
http://www.eggheadcafe.com/tutorials/aspnet/6dd13594-0a01-4c29-a2fd-0...


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Russell Fields  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 15:17
Newsgroups: microsoft.public.sqlserver.programming
From: "Russell Fields" <russellfie...@nomail.com>
Date: Thu, 5 Nov 2009 10:17:57 -0500
Local: Thurs 5 Nov 2009 15:17
Subject: Re: transaction log file growth
Mike,

If you have a long-running transaction that remains open, it prevents the
log space from being reused, which can cause the log file to grow.  Log
space can only be backed up and reused back to the oldest still open
transaction in the database.  You can investigate using DBCC OPENTRAN to see
if that is the case. (Note that even if the transaction is small, it still
holds the log space prisoner for all the other transactions that run after
it, until it completes.)

Sometimes it can also be helpful to:

SELECT spid, open_tran, last_batch
FROM sysprocesses
WHERE open_tran > 0
ORDER BY last_batch

The last batch tells when batches with open transactions started, but not
necessarily when the current transactions started.

Also, here is Tibor's article on shrinking files:
http://www.karaszi.com/SQLServer/info_dont_shrink.asp

RLF


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tom Cooper  
View profile   Translate to Translated (View Original)
 More options 5 Nov, 17:55
Newsgroups: microsoft.public.sqlserver.programming
From: "Tom Cooper" <tomcoo...@comcast.net>
Date: Thu, 5 Nov 2009 12:55:22 -0500
Local: Thurs 5 Nov 2009 17:55
Subject: Re: transaction log file growth
The database backup would not cause this.  I suspect that the job which does
your full database backup is also doing something else (like reorganizing or
rebuilding indexes that is generating lots of log entries).

Tom


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TheSQLGuru  
View profile   Translate to Translated (View Original)
 More options 6 Nov, 20:12
Newsgroups: microsoft.public.sqlserver.programming
From: "TheSQLGuru" <kgbo...@earthlink.net>
Date: Fri, 6 Nov 2009 14:12:31 -0600
Local: Fri 6 Nov 2009 20:12
Subject: Re: transaction log file growth
index maint is a common culprit.  ETL or bulk loading jobs is another.

--
Kevin G. Boles
Indicium Resources, Inc.
SQL Server MVP
kgboles a earthlink dt net

"Tom Cooper" <tomcoo...@comcast.net> wrote in message

news:ebftwEkXKHA.1236@TK2MSFTNGP05.phx.gbl...


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google