Re: Shrinking database, simple model
- From: "m" <miroslavsi@xxxxxxxxx>
- Date: Thu, 24 Sep 2009 17:05:13 +0200
After running dbcc opentran we got:
Replicated Transaction Information:
Oldest distributed LSN : (0:0:0)
Oldest non-distributed LSN : (11585:3549:1)
Is there anything concerning?
"m" <miroslavsi@xxxxxxxxx> wrote in message
news:h9g18k$ccf$1@xxxxxxxxxxxxxxxxxxx
Thanks for your answer,
In normal conditions LDF file isn't so big, it takes few Mb
This extra growing happened after extensive deleting (external
administration system delete row by row in many tables)
So, after that extensive deleting it is recommended to free LDF space
becouse we had problem with hard disk space?
Regards
"Erland Sommarskog" <esquel@xxxxxxxxxxxxx> wrote in message
news:Xns9C9086AC36B2CYazorman@xxxxxxxxxxxx
m (miroslavsi@xxxxxxxxx) writes:
We have database in SIMPLE recovery model.
MDF file is about 3GB
but LDF file is about 15GB
We tried to shrink LDF, and after shrinking we got LDF about 7GB.
We used shrinking before and LDF file was always about 1Mb.
Can anyone tell me why SQL server still keep that 7 GB in LDF file and
is there any chance for server to release that space on his own without
forsing it? Is that just a question of time, and becouse SIMPLE recovery
model SQL server will do it by itself?
First, if the log file keeps growing to 15 GB, let it be that size. You
only lose performance if you shrink it. Particularly if you shrink to 1MB
with 10% autogrow.
If your log files grows to that size in simple recovery, this means that
you have individual transactions that require that amount of log space.
Do you perform heavy table reloads? Maybe these could be improved?
One reason the file does shrink more is that there is an open
transaction.
The log will not be truncated past the oldest transaction in the
database.
You can run DBCC OPENTRAN in the database to find out.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: Shrinking database, simple model
- From: Erland Sommarskog
- Re: Shrinking database, simple model
- References:
- Shrinking database, simple model
- From: m
- Re: Shrinking database, simple model
- From: Erland Sommarskog
- Re: Shrinking database, simple model
- From: m
- Shrinking database, simple model
- Prev by Date: Re: Shrinking database, simple model
- Next by Date: Re: Shrinking database, simple model
- Previous by thread: Re: Shrinking database, simple model
- Next by thread: Re: Shrinking database, simple model
- Index(es):
Relevant Pages
|