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: Wednesday, July 30, 2014 1:02 AM
Points: 141, Visits: 259
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 @ 9:47 AM
Points: 6,306, Visits: 13,605
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: Wednesday, July 30, 2014 1:02 AM
Points: 141, Visits: 259
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 @ 9:47 AM
Points: 6,306, Visits: 13,605
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: Wednesday, July 30, 2014 1:02 AM
Points: 141, Visits: 259
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 @ 9:47 AM
Points: 6,306, Visits: 13,605
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 @ 10:05 AM
Points: 42,829, Visits: 35,961
Please read through this - Managing Transaction Logs and this: http://www.sqlservercentral.com/articles/Transaction+Log/72488/


Gail Shaw
Microsoft Certified Master: SQL Server 2008, 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: Wednesday, July 30, 2014 1:02 AM
Points: 141, Visits: 259
Thanks GilaMonster :)
Post #1357779
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse