Loading…

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!

SharePoint 2010 database maintenance

on

  • 8,630 views

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

Statistics

Views

Total Views
8,630
Views on SlideShare
8,628
Embed Views
2

Actions

Likes
5
Downloads
201
Comments
0

1 Embed 2

http://www.linkedin.com 2

Accessibility

Categories

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.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
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 SharePoint 2010 database maintenance Presentation Transcript

  • SharePoint 2010 Database Maintenance
    @mranlett
    Matt Ranlett
    Senior Technology Architect
    facebook.com/mranlett
  • Speaker Bio
    Matt Ranlett
    Slalom Senior Technology Architect
    Experience:
    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!
    @mranlett
    facebook.com/mranlett
  • Agenda
  • 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?
  • Databases
  • 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
  • SharePoint 2010 Foundations Databases
    Configuration Databases
  • SharePoint 2010 Foundations Databases
    Content Databases
  • SharePoint 2010 Foundations Databases
    Health Databases
  • SharePoint 2010 Foundations Databases
    Application Databases
  • SharePoint Server 2010 Databases
    Managed Metadata Service_GUID
    PerformancePoint Service Application_GUID
    Search_Service_Application_CrawlStoreDB_GUID
    Search_Service_Application_DB
    Search_Service_Application_PropertyStoreDB_GUID
    Secure_Store_Service_DB_GUID
    StateService_GUID
    User Profile Service Application_ProfileDB_GUID
    User Profile Service Application_SocialDB_GUID
    User Profile Service Application_SyncDB_GUID
    WebAnalyticsServiceApplication_ReportingDB_GUID
    WebAnalyticsServiceApplication_StagingDB_GUID
    WordAutomationServices_GUID
  • 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
    PowerShell
    New-SPConfigurationDatabase -DatabaseName "SharePointConfigDB1"
    -DatabaseServer "SQL-01"
    -Passphrase (ConvertTo-SecureString "MyPassword" -AsPlainText -force)
    -FarmCredentials (Get-Credential)
  • Data Integrity
  • DB Corruption
    Physical corruption
    Tends to be caused by I/O subsystem hardware
    Logical corruption
    Caused by application and user errors
    DBCC_CHECKDB
    The role of backups
  • Speed
  • Right-sizing Hardware
    64 bit hardware and software
    16 GB memory
    Numerous distinct spindles
    Buckets of storage capacity
  • 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
  • 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
  • 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.
  • Data Sizing
  • How much space do you need?
    Database size = ((# Documents × # Versions) × Avg Size) + (10 KB ×(# List items + (# Versions × # Documents)))
  • Adjust the fill factor
    Database pages as phone book pages
    Fill factor == blank space on each page
    Reduce fragmentation
    Increase disk storage requirements
  • Shrink databases
  • Solution Automation
  • 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
    AvePoint
    Quest
  • 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.
  • 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.
  • Questions
  • Matt Ranlett
    mranlett@devcow.com
    www.devcow.com
    @mranlett
    facebook.com/mranlett