SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


The transaction log for database 'tempdb' is full. Msg 9002, Level 17, State 4, Line 2


The transaction log for database 'tempdb' is full. Msg 9002, Level 17, State 4, Line 2

Author
Message
deepak.a
deepak.a
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2364 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
Satnam Singh
Satnam Singh
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1770 Visits: 1084
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
Koen Verbeeck
Koen Verbeeck
SSC Guru
SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)

Group: General Forum Members
Points: 111458 Visits: 13338
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?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
Grant Fritchey
Grant Fritchey
SSC Guru
SSC Guru (163K reputation)SSC Guru (163K reputation)SSC Guru (163K reputation)SSC Guru (163K reputation)SSC Guru (163K reputation)SSC Guru (163K reputation)SSC Guru (163K reputation)SSC Guru (163K reputation)

Group: General Forum Members
Points: 163147 Visits: 33199
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 and SQL Server Execution Plans
Product Evangelist for Red Gate Software
deepak.a
deepak.a
SSCrazy
SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)SSCrazy (2.4K reputation)

Group: General Forum Members
Points: 2364 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
Koen Verbeeck
Koen Verbeeck
SSC Guru
SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)

Group: General Forum Members
Points: 111458 Visits: 13338
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?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
rupesh.rams
rupesh.rams
SSC Veteran
SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)SSC Veteran (245 reputation)

Group: General Forum Members
Points: 245 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
Koen Verbeeck
Koen Verbeeck
SSC Guru
SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)SSC Guru (111K reputation)

Group: General Forum Members
Points: 111458 Visits: 13338
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. :-D


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

MCSE Business Intelligence - Microsoft Data Platform MVP
polkadot
polkadot
SSCertifiable
SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)SSCertifiable (5.7K reputation)

Group: General Forum Members
Points: 5678 Visits: 1257
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.

--Quote me
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search