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

The transaction log for database 'tempdb' is full. Msg 9002, Level 17, State 4, Line 2 Expand / Collapse
Author
Message
Posted Friday, February 11, 2011 3:15 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Thursday, January 2, 2014 9:57 AM
Points: 554, Visits: 863
hi All,

I found this Error

The transaction log for database 'tempdb' is full. Msg 9002, Level 17, State 4, Line 2
To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases

can any body please explain ,if we encounter the above error what are the steps to resolve this error

Thanks & Regards
Deepak.A
Post #1062433
Posted Friday, February 11, 2011 3:23 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, January 6, 2014 1:47 AM
Points: 292, Visits: 1,084
Is there any space left on the drive where the tempdb is hosted. I feel that you will most probably need to restart the SQL Server Services.

Cheers,
Satnam
Post #1062436
Posted Friday, February 11, 2011 3:33 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 11:42 AM
Points: 13,295, Visits: 11,086
As Satnam already mentioned, restarting the SQL Server will clear up the log space used by tempdb.
If this however is not an option, you can try the following:

* Issue a CHECKPOINT command to free up log space in the log file.

* Check the available log space with DBCC SQLPERF('logspace'). If only a small percentage of your log file is actually been used, you can try a DBCC SHRINKFILE command. This can however possibly introduce corruption in tempdb.




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1062439
Posted Friday, February 11, 2011 4:05 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 6:53 AM
Points: 13,890, Visits: 28,285
If you have another drive with space available you can try to add a file there in order to get enough space to attempt to resolve the issue, whatever it might be.

----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of: SQL Server Query Performance Tuning
SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #1062452
Posted Saturday, February 12, 2011 2:16 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Thursday, January 2, 2014 9:57 AM
Points: 554, Visits: 863
Koen Verbeeck (2/11/2011)


* Issue a CHECKPOINT command to free up log space in the log file.

.


Hi Koen verbeeck,

What is CHECKPOINT , how to issue the CHECKPONT , how it will free up the space in the tempDB ?

Can you please explain little biit more

Thanks & Regards
Deepak.A
Post #1062957
Posted Saturday, February 12, 2011 6:52 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 11:42 AM
Points: 13,295, Visits: 11,086
http://msdn.microsoft.com/en-us/library/ms188748.aspx

http://sqlserverpedia.com/blog/sql-server-bloggers/the-lazy-writer-and-the-checkpoint/

http://www.sqlskills.com/BLOGS/PAUL/post/What-does-checkpoint-do-for-tempdb.aspx




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1062972
Posted Friday, August 9, 2013 1:31 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Sunday, June 1, 2014 10:01 AM
Points: 7, Visits: 9
This issue with the log file size.You can verify the below url to rectify easily.


The transaction log for database 'mydb' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases......http://mytecharticle.com/?p=447
Post #1482670
Posted Friday, August 9, 2013 1:38 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 11:42 AM
Points: 13,295, Visits: 11,086
rupesh.rams (8/9/2013)
This issue with the log file size.You can verify the below url to rectify easily.


The transaction log for database 'mydb' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases......http://mytecharticle.com/?p=447


This thread is two years old, I hope his log issues are already fixed.




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1482673
Posted Thursday, November 21, 2013 12:38 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Wednesday, September 10, 2014 4:45 PM
Points: 308, Visits: 839
Koen Verbeeck (2/11/2011)
As Satnam already mentioned, restarting the SQL Server will clear up the log space used by tempdb.


I too am getting:
Msg 9002, Level 17, State 4, Line 10
The transaction log for database 'tempdb' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases

and I just had our system admin restart server, but problem is same. Using SQL Server 2008 R2.

The log_reuse_wait value in sys.databases was 4 before and still is.

I am going to read about Checkpoint...with the links provided.
Post #1516557
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse