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

DB with SIMPLE Recovery model not releasing log space Expand / Collapse
Author
Message
Posted Tuesday, December 11, 2012 8:38 PM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Thursday, June 12, 2014 1:09 AM
Points: 72, Visits: 251
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.
Post #1395407
Posted Tuesday, December 11, 2012 9:59 PM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Friday, March 21, 2014 9:46 AM
Points: 387, Visits: 1,078
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).
Post #1395418
Posted Tuesday, December 11, 2012 11:41 PM


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 @ 3:14 AM
Points: 42,460, Visits: 35,520
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 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 #1395446
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse