Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Can't reduceTransaction Log

Author  Topic 

mlevier
Starting Member

33 Posts

Posted - 2007-11-01 : 11:48:56

What can you do when your transaction log is full and you can't reduce it's file size? We are working on it's second backup and hoping that it will help. I know that is no a fix for it though.

I have tried several statements and have had no luck.

I tried the DBCC OPENTRAN command which said that nothing was open.

I have tried

USE CPA
DBCC SHRINKFILE(CPA_Log,TRUNCATEONLY) and


DBCC SHRINKFILE ('CPA_Log',128)

the second one of those commands gave me output which i dont't understand.

We have even looked at the sys.database as well.

We have tried these commands in both simple and full recovery modes.
I'm not sure what else to look for or try to do to solve this problem. I feel that I am walking in the dark with no leads.

Any imput would be great. If I'm not providing enough information please let me know.

Thanks!!!

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-11-01 : 11:50:21
what is DBCC SHRINKFILE ('CPA_Log',128) saying?

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page

mlevier
Starting Member

33 Posts

Posted - 2007-11-01 : 11:51:47
Dbld Field CurrentSize Min.Size UsedPages Est.Pages
7 2 13820864 128 13820864 128
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-11-01 : 12:01:26
just to make it clear:
your db was in full recover mode.
you changed it to simple and tried dbcc shrink file and it didn't work?


_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page

mlevier
Starting Member

33 Posts

Posted - 2007-11-01 : 12:02:46
YES
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-11-01 : 12:15:32
is there anything in your sql error log?

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page

mlevier
Starting Member

33 Posts

Posted - 2007-11-01 : 12:51:29
nope
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2007-11-01 : 13:04:37
spirit:

This was being discussed over at : http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=91338
Go to Top of Page

juancabrera
Starting Member

30 Posts

Posted - 2007-11-01 : 13:43:49
I don't know if you got the problem fixed. I don't know why it's doing that, but as a work around, why can't you create a back up of the db and then restore it as a new database. Then you can destroy the old one, rename the new one, and then you are set. How many gigs is it anyway?
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-11-01 : 22:47:28
Backup log first.
Go to Top of Page

juancabrera
Starting Member

30 Posts

Posted - 2007-11-02 : 15:51:53
Yes you may want to back up the log first, even though you may not need it since your new db back up should have the latest transactions.
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-11-02 : 16:24:09
as he pointed out he also did back it up.

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2007-11-05 : 11:54:57
have you found a solutions to this yet?

i see that your transaction log is around 105 GB.
this means that you have very large virtual log files and a checkpoint may not be able to clear all of it:
http://www.sqlskills.com/blogs/paul/2007/11/05/WhyWontMyLogClearInSIMPLERecoveryModeSQL2000BugOrVeryLargeVLFs.aspx

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com
Go to Top of Page
   

- Advertisement -