February 21, 2012 at 12:18 pm
One of my database Transaction log is failing, got following error:
Type: Transaction Log
Append existing
Task start: 2012-02-20T20:00:41.
Task end: 2012-02-20T20:01:22.
Failed-1073548784) Executing the query "BACKUP LOG [SharePoint_Config] TO DISK = N'D:\\Pro..." failed with the following error: "BACKUP detected corruption in the database log. Check the errorlog for more information.
BACKUP LOG is terminating abnormally.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
Command:BACKUP LOG [SharePoint_Config] TO DISK = N''D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Backup\SharePoint_Config_backup_2012_02_20_200041_3106639.trn'' WITH NOFORMAT, NOINIT, NAME = N''SharePoint_Config_backup_2012_02_20_200041_2989447'', SKIP, REWIND, NOUNLOAD, STATS = 10
GO.
also I ran the following statement to see the what is the recovery mode set..
select name, log_reuse_wait_desc, recovery_model_desc from sys.databases where name = 'SharePoint_Config';
and looks like recovery_model_desc =FULL.
I am running on Sql server 2008 R2.
Could anyone assist me on this.
Thanks
February 21, 2012 at 3:30 pm
Do you have log backups that are succeeding for different databases to the same directory?
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
February 21, 2012 at 3:42 pm
Corruption in the log is reasonably easy to fix, as long as it's the inactive portion. You've got backups right up to when this started?
Switch to simple recovery, run a checkpoint, switch back to full, take a full or differential backup, try the log backups again. If anything in that series fails don't go any further.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
February 22, 2012 at 8:11 am
Yes very much!
February 22, 2012 at 8:15 am
Yes, I do have a backup!
I will do as per your advice!
Thanks!
February 22, 2012 at 8:33 am
Can I change the recovery to simple and run a checkpoint when users are accessing the DB?
February 22, 2012 at 8:41 am
Yes, but this is something better done while the DB is idle.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
February 22, 2012 at 8:46 am
Better I will do after office hours.
Thanks.
February 23, 2012 at 7:31 am
Now Transaction log backup is working fine, after I did the above said steps. Now my question is in future if I faced the same situation, I need to do the same steps.
Also why in sys.databases table the column log_reuse_wait_desc shows "LOG_BACKUP'. Also I would like to know how to avoid these log errors going forward.
Appreciate your advice.
Thanks
February 23, 2012 at 7:46 am
Kargan (2/23/2012)
Also why in sys.databases table the column log_reuse_wait_desc shows "LOG_BACKUP'. Also I would like to know how to avoid these log errors going forward.
That's not an error. That's saying that the log is not being reused because portions are held active pending a transaction log backup.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
February 23, 2012 at 7:49 am
Got it! Thanks.
February 24, 2012 at 1:29 am
February 24, 2012 at 7:21 am
Hi Gail,
I got the same "LOG_BACKUP" in sys.databases. I will do the same steps(full to simple and then run checkpoint, change to full, then take full or differential backup, then trnlog backup).
Is there any way I can avoid this in future?
Appreciate your help!
Thanks
Viewing 13 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic. Login to reply