Solved

Log size for SharePoint database

Posted on 2014-02-10
10
346 Views
Last Modified: 2014-02-16
I find that there are several big log files on SharePoint,  can I use the normal SQL backup procedure to backup the log with truncate, and then shrink the transaction log file.

In a long run, can I change the recovery mode for these SQL database to Recovery ? Will there be any concern on this ?  

Tks

SharePoint_Config
SharePoint_AdminContent_xxxx
WSS_Content
SSISDB
0
Comment
Question by:AXISHK
  • 5
  • 5
10 Comments
 
LVL 29

Expert Comment

by:QPR
ID: 39849153
Yes, backup the logs (if not in simple mode) then backup with truncate.
The recovery mode you select depends on what data you can afford to lose in a disaster.
Full mode will give you the ability to restore from backup (DB backup) and then restore all transaction log backups taken since the DB backup.
Simple mode means you can only restore the DB backup as there are no log backups.

I would put the content databases in full and others in simple.
Have a nightly DB backup for all and an hourly log backup for the DBs in full recovery mode.

While in the area check that the autogrow value on the files are not too small. Larger values with cut down on (CPU intensive) auto growths and reduce VLFs (virtual log files) within the logs
0
 

Author Comment

by:AXISHK
ID: 39849201
One more check,

Can I directly shrink the transaction log without doing the backup with truncate option, or just doing the backup without truncate option ? What's that option used for ?

Tks
0
 
LVL 29

Expert Comment

by:QPR
ID: 39849238
Backup without truncate won't shrink, DBCC shrinkfile will, backup with truncate will
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

Author Comment

by:AXISHK
ID: 39849290
Sorry,

Do u mean that I can issue DBCC shrinkfile on the transaction log and it will truncate the committed transaction and reduces the physical size of the log file ?
0
 
LVL 29

Expert Comment

by:QPR
ID: 39849294
I would truncate follow by DBCC shrinkfile to be sure
0
 

Author Comment

by:AXISHK
ID: 39849324
We can only truncate the transaction log through the backup, correct ?

The truncate and shrinkfile works on transaction log only, no need to carry out on the database, correct ?

Tks
0
 
LVL 29

Expert Comment

by:QPR
ID: 39849345
Shrinkfile also works on the DB file too.
0
 

Author Comment

by:AXISHK
ID: 39850415
HOW TO Shrink database?
Can i truncate trx. log directly or it can only be truncate through backup?
0
 
LVL 29

Accepted Solution

by:
QPR earned 500 total points
ID: 39850997
DBCC shrinkfile
http://msdn.microsoft.com/en-us/library/ms189493.aspx

All you need to know about shrinking the DB, the log and truncating
0
 

Author Closing Comment

by:AXISHK
ID: 39863672
Tks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question