August 8, 2011 at 9:33 am
Hi ,
I tried running the commands to shrink log files but i am getting the errors and the file also not shrinking..
The error comes like this:
Cannot shrink log file 2 () because of minimum log space required.
(1 row(s) affected)
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
Msg 4214, Level 16, State 1, Line 4
BACKUP LOG cannot be performed because there is no current database backup.
Msg 3013, Level 16, State 1, Line 4
BACKUP LOG is terminating abnormally.
Cannot shrink log file 2 () because of minimum log space required.
(1 row(s) affected)
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
Can anybody suggest me what to do ?
Thanks..
August 8, 2011 at 9:39 am
You can't shrink that, as it says it's already at a minimum
Why are you trying to shrink anyway? Why are you breaking your transaction log chain? You've left yourself open to data loss if a disaster occurs.
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
August 8, 2011 at 9:41 am
August 8, 2011 at 9:46 am
I know shrinking is a bad practice...but the log files have grown tooo much..i need to get the space free... I have seen gail's link too...while i am doing it i took backup of this...
Thanks..
August 8, 2011 at 9:51 am
Have you checked why the log is full? (if you read my article I assume you've already done all that)
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
August 8, 2011 at 9:52 am
p.s. There's no way you can be taking log backups after doing what you posted, unless there was a full backup taken that you didn't mention.
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
August 8, 2011 at 10:18 am
Try shrinking to a larger size, if that makes sense.
Pick a size that is larger your minimum and include that in the shrink.
August 8, 2011 at 12:04 pm
GilaMonster (8/8/2011)
You can't shrink that, as it says it's already at a minimumWhy are you breaking your transaction log chain?
Does shriniking breaks up log chain ? even if he is not changing the recovery model.
I know the same what you said before but I recently heard the log backup don't breakup if you don't change the recovery model.
August 8, 2011 at 12:10 pm
Steve Jones - SSC Editor (8/8/2011)
Try shrinking to a larger size, if that makes sense.Pick a size that is larger your minimum and include that in the shrink.
I have had this work on occasion.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 8, 2011 at 12:11 pm
@SQLFRNDZ (8/8/2011)
GilaMonster (8/8/2011)
You can't shrink that, as it says it's already at a minimumWhy are you breaking your transaction log chain?
Does shriniking breaks up log chain ? even if he is not changing the recovery model.
I know the same what you said before but I recently heard the log backup don't breakup if you don't change the recovery model.
In this case he is changing the recovery model. The log chain does get broken when you change recovery models.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 8, 2011 at 12:16 pm
SQLRNNR (8/8/2011)
@SQLFRNDZ (8/8/2011)
GilaMonster (8/8/2011)
You can't shrink that, as it says it's already at a minimumWhy are you breaking your transaction log chain?
Does shriniking breaks up log chain ? even if he is not changing the recovery model.
I know the same what you said before but I recently heard the log backup don't breakup if you don't change the recovery model.
In this case he is changing the recovery model. The log chain does get broken when you change recovery models.
Thats true.. Thanks
August 8, 2011 at 12:18 pm
@SQLFRNDZ (8/8/2011)
Does shriniking breaks up log chain ?
No.
even if he is not changing the recovery model.
ALTER DATABASE fv_prepaid_ca_test SET RECOVERY SIMPLE WITH NO_WAIT
DBCC SHRINKFILE(Aprakash_CoreAuth_log, 1,TRUNCATEONLY)
ALTER DATABASE fv_prepaid_ca_test SET RECOVERY FULL WITH NO_WAIT
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
August 8, 2011 at 2:50 pm
ya i am taking log backups too..
August 8, 2011 at 2:51 pm
GilaMonster (8/8/2011)
Have you checked why the log is full? (if you read my article I assume you've already done all that)
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
Viewing 15 posts - 1 through 15 (of 15 total)
You must be logged in to reply to this topic. Login to reply