It would be ideal to shrink/truncate the size of these log files in a timely manner.The below steps helps in resolving this issue.
1. Back up the Sharepoint log file
Open SQL 2008.Select New Query.
Type the following:
BACKUP LOG [Sharepoint_Config] TO DISK=’F:\configLogBackup.bak’
GO
2. Change Recovery model to SIMPLE
Change the DB recovery model to Simple (Right click on the SharePoint_Config and click on properties -> Options -> Recovery model: change it to SIMPLE.
(OR)
Query :
ALTER DATABASE Databasename
SET RECOVERY Simple
3. Shrink the Sharepoint Config log DB to 50 MB
Clear the query or open another query tab and enter the next command:
DBCC SHRINKFILE('Sharepoint_Config_Log',50)
Thanks, this helped a lot when our config log grew to 96 GB!
ReplyDeleteOne detail to add: Step 3 needs a USE statement prior to the shrink.
Thanks, My sharepoint config Log reached 234gb . Attempted several other methods of shrinking the file, this is the only way I found it to work. Thanks Again.
ReplyDeleteexcellent
ReplyDeleteThanks man, Worked like a charm!
ReplyDeletei am getting the following error:
ReplyDeleteMsg 4214, Level 16, State 1, Line 1
BACKUP LOG cannot be performed because there is no current database backup.
Msg 3013, Level 16, State 1, Line 1
BACKUP LOG is terminating abnormally.