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

log_reuse_wait_desc column says LOG_BACKUP - what should i do ? Expand / Collapse
Author
Message
Posted Monday, September 10, 2012 10:17 PM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Sunday, April 5, 2015 5:39 AM
Points: 141, Visits: 261
I'm using Sql Server 2005.

When i tried to compile a stored procedure i got the below message

The transaction log for database 'CDGSYSNCV' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases

and when i ran the query below

select log_reuse_wait_desc, * from sys.databases where name ='CDGSYSNCV'

and found the log_reuse_wait_desc as 'LOG_BACKUP'

when i checked here at http://msdn.microsoft.com/en-us/library/ms178534.aspx

i found a note - If the reason is LOG_BACKUP, it may take two backups to actually free the space.

So what should i do. Can anyone help me on this as i don't have control over backup process at my office.

Thanks
Post #1357128
Posted Tuesday, September 11, 2012 1:24 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 7:03 AM
Points: 7,556, Visits: 15,564
what is the recovery model used on the database?
When running in full recovery you must ensure you have transactioon log backups in place to truncate the inactive portions of the log.


-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs"
Post #1357169
Posted Tuesday, September 11, 2012 1:32 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Sunday, April 5, 2015 5:39 AM
Points: 141, Visits: 261
Hi,

The recovery model is FULL
Post #1357171
Posted Tuesday, September 11, 2012 1:35 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 7:03 AM
Points: 7,556, Visits: 15,564
S-322532 (9/11/2012)
Hi,

The recovery model is FULL

Do you have transaction log backups in force for this database either via scripts or a maintenance plan?


-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs"
Post #1357173
Posted Tuesday, September 11, 2012 1:42 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Sunday, April 5, 2015 5:39 AM
Points: 141, Visits: 261
Hi Perry,

Yes, we have. Kindly tell me what should i do ?
Post #1357178
Posted Tuesday, September 11, 2012 2:03 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 7:03 AM
Points: 7,556, Visits: 15,564
S-322532 (9/11/2012)
Hi Perry,

Yes, we have. Kindly tell me what should i do ?

Ensure that it is running successfully, check the job history to ensure it doesnt fail.

A common problem I have seen is the log backup job fails due to lack of space on the backup drive


-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs"
Post #1357182
Posted Tuesday, September 11, 2012 2:50 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 7:33 AM
Points: 42,775, Visits: 39,702
Please read through this - Managing Transaction Logs and this: http://www.sqlservercentral.com/articles/Transaction+Log/72488/


Gail Shaw
Microsoft Certified Master: SQL Server, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1357206
Posted Tuesday, September 11, 2012 10:37 PM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Sunday, April 5, 2015 5:39 AM
Points: 141, Visits: 261
Thanks GilaMonster :)
Post #1357779
Posted Friday, July 3, 2015 12:18 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, July 3, 2015 3:27 PM
Points: 1, Visits: 1
Hi,

I am also facing the same issue-

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

Please suggest me how i resolve it.
Post #1700219
Posted Friday, July 3, 2015 1:40 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 7:33 AM
Points: 42,775, Visits: 39,702
manisingh2802 (7/3/2015)
Msg 9002, Level 17, State 2, Line 1
The transaction log for database 'AspenBatch' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databases


And what does it say?



Gail Shaw
Microsoft Certified Master: SQL Server, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1700226
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse