Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


DB with SIMPLE Recovery model not releasing log space


DB with SIMPLE Recovery model not releasing log space

Author
Message
Mohammed Imran Ali
Mohammed Imran Ali
Valued Member
Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)Valued Member (73 reputation)

Group: General Forum Members
Points: 73 Visits: 258
Hi,

I have a database in SIMPLE recovery model and the log file size is approx 30GB (99% free). I am not able to find any open transactions or orphaned transactions.

The transaction log file does not go down even after database full backup is completed. The database has 2 data files and 1 log file.

sp_helpfile for the database shows the below results

name fileid filename filegroup size maxsize growth usage
DB1_Data 1 x:\Data\DB1_Data.MDF PRIMARY 39000960 Unlimited 10% data only
DB1_Log 2 x:\Data\DB1Lob_Data.MDF NULL 30864960 2147483648 10% log only
DB1Lob_Data 3 y:\Log\DB1_Log.LDF PRIMARY_LOBS 1437888 Unlimited 10% data only

The DB1_Log (Tlog file) has the data file mapped to it and the DB1Lob_Data (Secondary Data file) has the log file mapped to it.

Could this be the reason why the log file is not releasing space? Any clarification on this is much appreciated.
SQL Show
SQL Show
Old Hand
Old Hand (393 reputation)Old Hand (393 reputation)Old Hand (393 reputation)Old Hand (393 reputation)Old Hand (393 reputation)Old Hand (393 reputation)Old Hand (393 reputation)Old Hand (393 reputation)

Group: General Forum Members
Points: 393 Visits: 1078
Mohammed Imran Ali (12/11/2012)

The transaction log file does not go down even after database full backup is completed


Full database backup will not reduce Tlog size.

Have you verified the status of VLF's? Post the result of DBCC Loginfo(Yourdatabasename).
GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47239 Visits: 44377
Mohammed Imran Ali (12/11/2012)
Could this be the reason why the log file is not releasing space? Any clarification on this is much appreciated.


The only thing that releases space back to the OS is a shrink file. Nothing else reduces the size of the physical file.

Since the log file is 99% free space, log reuse is working properly and there's no problems here, nothing to be concerned about.


Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
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


Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search