Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Like this? Share it with your network


SharePoint 2010 database maintenance



Presentation which accompanies the article at http://www.sharepointproconnections.com/article/microsoft-products/Database-Maintenance-for-SharePoint-.aspx

Presentation which accompanies the article at http://www.sharepointproconnections.com/article/microsoft-products/Database-Maintenance-for-SharePoint-.aspx



Total Views
Views on SlideShare
Embed Views



1 Embed 2

http://www.linkedin.com 2



Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment
  • SharePoint expert and Intellinet principal consultant, Matt Ranlett, has been a fixture of the SharePoint and .NET developer communities for many years. As a fourth-year Microsoft MVP for SharePoint Server and a founding member of the Atlanta .Net Regular Guys, Matt has formed several Atlanta user groups and organized local and national community activities such as the Free Training 1, 2, 3! series and four Atlanta Code Camps. He has also served for 2 years on the INETA Board of Directors as the Vice President of Technology; and co-authored “Professional SharePoint 2007 Development” and “Social Computing With Microsoft SharePoint 2007” as well as six cover stories for various magazines including, ASP.NET Pro, Windows IT Pro, and Exchange & Outlook Administrator. Matt lives in Atlanta with his wife Kim and son Parker.
  • A complete walkthrough of how a DBA might create various content and configuration databases can be found on TechNet - http://technet.microsoft.com/en-us/library/cc262869.aspx

SharePoint 2010 database maintenance Presentation Transcript

  • 1. SharePoint 2010 Database Maintenance
    Matt Ranlett
    Senior Technology Architect
  • 2. Speaker Bio
    Matt Ranlett
    Slalom Senior Technology Architect
    5-Year SharePoint Server Microsoft MVP
    MCAD and MCTS (2007 & 2010) Certified
    Co-founder, Atlanta Dot Net Regular Guys www.devcow.com
    Past Vice President of Technology, INETA
    Author and editor of books and magazines
    I’ve lost 75 pounds since this photo was taken!
  • 3. Agenda
  • 4. Database Maintenance for SharePoint Server
    What are the databases involved?
    How do I ensure data integrity?
    What does it take to keep things as speedy as possible?
    How can I impact database storage size and cost?
    Can these maintenance tasks be automated?
  • 5. Databases
  • 6. Supported Versions of SQL Server
    Table taken from Microsoft whitepaper:
    SQL Server 2008 R2 and SharePoint 2010: Better Together whitepaper - http://technet.microsoft.com/en-us/library/cc990273.aspx
  • 7. SharePoint 2010 Foundations Databases
    Configuration Databases
  • 8. SharePoint 2010 Foundations Databases
    Content Databases
  • 9. SharePoint 2010 Foundations Databases
    Health Databases
  • 10. SharePoint 2010 Foundations Databases
    Application Databases
  • 11. SharePoint Server 2010 Databases
    Managed Metadata Service_GUID
    PerformancePoint Service Application_GUID
    User Profile Service Application_ProfileDB_GUID
    User Profile Service Application_SocialDB_GUID
    User Profile Service Application_SyncDB_GUID
  • 12. Auto-provision or DBA provision
    When to DBA provision
    guaranteed control over database names (no GUIDs in the DB names)
    guaranteed control over database sizing
    procedural separation of control over application and data environments
    How to DBA provision
    New-SPConfigurationDatabase -DatabaseName "SharePointConfigDB1"
    -DatabaseServer "SQL-01"
    -Passphrase (ConvertTo-SecureString "MyPassword" -AsPlainText -force)
    -FarmCredentials (Get-Credential)
  • 13. Data Integrity
  • 14. DB Corruption
    Physical corruption
    Tends to be caused by I/O subsystem hardware
    Logical corruption
    Caused by application and user errors
    The role of backups
  • 15. Speed
  • 16. Right-sizing Hardware
    64 bit hardware and software
    16 GB memory
    Numerous distinct spindles
    Buckets of storage capacity
  • 17. Managing database files
    Separate your log and data files to different spindles
    Don’t put ANYTHING else on these spindles
    Pre-create database and log files of the appropriate size
    Reduces auto-grow needs
    Correctly configure auto-grow anyways!
    Turn ON instant file initialization
    Grant the SQL service account  Perform Volume Maintenance permission
  • 18. Data Fragmentation
    Data stored in database pages
    Header, record data, index, free space
    Clustered and non-clustered indexes
    GUID-based keys
    Fragmentation through normal data manipulation
    Seen as growing free space and slowing performance
    Intelligently rebuild only the indexes which need it
    DMV sys.dm_db_index_physical_stats
  • 19. Statistics
    Queries run on execution plans
    Execution plans are automatically create based on statistics
    Statistics *can* get out of synch
    Remediation steps
    Analyze indexes and determine which indexes to operate on and how to do the fragmentation removal.
    For all indexes that were not rebuilt, update the statistics.
    Update statistics for all of the non-indexed columns.
  • 20. Data Sizing
  • 21. How much space do you need?
    Database size = ((# Documents × # Versions) × Avg Size) + (10 KB ×(# List items + (# Versions × # Documents)))
  • 22. Adjust the fill factor
    Database pages as phone book pages
    Fill factor == blank space on each page
    Reduce fragmentation
    Increase disk storage requirements
  • 23. Shrink databases
  • 24. Solution Automation
  • 25. Remote Blob Storage
    Store big files outside of the database
    Databases > 500 GB
    BLOB files > 256 KB
    Not good for write-intensive sites
    Partner implementations
  • 26. Database Maintenance Plans pt. 1
    Remove excessive transaction log file fragmentation by ensuring the appropriate recovery model and backup schedule
    Turn off any scheduled shrink operations to reduce the risk of unnecessary index fragmentation.
    Set auto-growth correctly - by a pre-determined set file size rather than a percentage.  Follow this up by periodically examining database sizes and determining if manual database growth is necessary to ensure optimum performance.
    Turn on instant file initialization such that a database auto-growth is an instantaneous operation rather than a slow operation which requires zero-filling new space.
  • 27. Database Maintenance Plans pt. 2
    Put a regular process in place to detect and remove index fragmentation.
    Turn on AUTO_CREATE_STATISTICS and AUTO_UPDATE_STATISTICS, plus have a regular process in place to update statistics.
    Turn on page checksums
    Have a regular process to run DBCC CHECKDB.
  • 28. Questions
  • 29. Matt Ranlett