SlideShare une entreprise Scribd logo
1  sur  29
SharePoint 2010 Database
Maintenance
Matt Ranlett
Senior Technology Architect
@mranlett
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
@mranlett
facebook.com/mranlett
I’ve lost 75
pounds since
this photo was
taken!
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
SharePoint Server 2010
Functionality
SQL Server 2008 R2
Enterprise
SQL Server 2008 R2
Standard
SQL Server 2008 R2
Express
SQL Server 2008
Enterprise
SQL Server 2008
Standard
SQL Server 2008
Express
SQL Server 2005
Enterprise
SQL Server 2005
Standard
SharePoint Server 2010 64-bit only 64-bit only 64-bit only 64-bit only
Service Pack (SP) 1,
Cumulative Update
(CU) 2 required, CU5 or
later recommended
64-bit only
SP1, CU2
required, CU5 or
later
recommended
64-bit only 64-bit only
SP3 CU3 required
64-bit only
SP3 CU3 required
Remote BLOB storage
(RBS) on a non-local
device
Requires RBS add-in from
the SQL Server 2008 R2
Feature Pack.
X X
RBS on a local device.
Requires RBS add-in from
the SQL Server 2008 R2
Feature Pack.
X X X X X X
Backup compression
X X X
Data compression for the
Search Crawl and
Property databases
X X
Table partitioning for
Web Analytics Reporting
databases
X X
Transparent data
encryption X X
Resource governor
X X
Database auditing
X X
Clustered database server
X
(faster recovery)
X
2 nodes only
X
(faster recovery)
X
2 nodes only
X
(faster recovery)
X
2 nodes only
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
Name Size and
Growth
Read/Write
Characteristic
s
Scaling Method Recover
y
Model
Backup mechanisms Mirror
within
farm
Mirror / log ship
to another farm
SharePoint_Admi
nContent_GUID
Small Varies can only scale up -
one DB per farm
Full SharePoint backup,
SQL Server, DPM
Yes No
SharePoint_Confi
g
Small with
large log files
read-intensive can only scale up -
one DB per farm
Full SharePoint backup,
SQL Server, DPM
Yes No
Configuration Databases
SharePoint 2010 Foundations Databases
Name Size and
Growth
Read/Write
Characteristic
s
Scaling Method Recover
y
Model
Backup mechanisms Mirror
within
farm
Mirror / log ship
to another farm
WSS_Content Recommend
ed to limit
size to <
200Gb*
up to 1 TB
supported in
some
scenarios
Varies Can scale up or
split additional
site collections to
new databases
Full SharePoint backup,
SQL Server, DPM
Yes Yes
Content Databases
SharePoint 2010 Foundations Databases
Name Size and
Growth
Read/Write
Characteristic
s
Scaling Method Recover
y
Model
Backup mechanisms Mirror
within
farm
Mirror / log ship
to another farm
WSS_UsageApplic
ation
Extra large write-
intensive
can only scale up -
one DB per farm
Simple SharePoint backup,
SQL Server, DPM
Yes but
why
bother
Yes but why
bother
WSS_Logging
Health Databases
SharePoint 2010 Foundations Databases
Name Size and
Growth
Read/Write
Characteristic
s
Scaling Method Recover
y
Model
Backup mechanisms Mirror
within
farm
Mirror / log ship
to another farm
Application_Regist
ry_Service_DB_G
UID
Small read-intensive can only scale up -
one DB per farm
Full SharePoint backup,
SQL Server, DPM
Yes No
Bdc_Service_DB_
GUID
Small read-intensive can only scale up -
one DB per farm
Full SharePoint backup,
SQL Server, DPM
Yes No
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
facebook.com/mranlett
mranlett@devcow.com
www.devcow.com
Check out the SharePoint Pro Connections magazine article this
presentation is based on:
http://www.sharepointproconnections.com/article/microsoft-products/Database-Maintenance-for-SharePoint-.aspx

Contenu connexe

Tendances

Getting SharePoint 2010 Deployment Right final
Getting SharePoint 2010 Deployment Right finalGetting SharePoint 2010 Deployment Right final
Getting SharePoint 2010 Deployment Right finalvmaximiuk
 
Dogfood Conference 2010 - What Every SharePoint 2010 Administrator Must Know
Dogfood Conference 2010 - What Every SharePoint 2010 Administrator Must KnowDogfood Conference 2010 - What Every SharePoint 2010 Administrator Must Know
Dogfood Conference 2010 - What Every SharePoint 2010 Administrator Must Knowvmaximiuk
 
Workflow Manager Tips & Tricks
Workflow Manager Tips & TricksWorkflow Manager Tips & Tricks
Workflow Manager Tips & TricksMai Omar Desouki
 
What SharePoint Admins need to know about SQL-Cinncinati
What SharePoint Admins need to know about SQL-CinncinatiWhat SharePoint Admins need to know about SQL-Cinncinati
What SharePoint Admins need to know about SQL-CinncinatiJ.D. Wade
 
What SQL DBA's need to know about SharePoint-St. Louis 2013
What SQL DBA's need to know about SharePoint-St. Louis 2013What SQL DBA's need to know about SharePoint-St. Louis 2013
What SQL DBA's need to know about SharePoint-St. Louis 2013J.D. Wade
 
Tuning Your SharePoint Environment
Tuning Your SharePoint EnvironmentTuning Your SharePoint Environment
Tuning Your SharePoint Environmentvmaximiuk
 
Maximizing sql 2012 performance for share point 2013 final
Maximizing sql 2012 performance for share point 2013 finalMaximizing sql 2012 performance for share point 2013 final
Maximizing sql 2012 performance for share point 2013 finalVinh Nguyen
 
Storing and managing your content in share point spsnyc
Storing and managing your content in share point spsnycStoring and managing your content in share point spsnyc
Storing and managing your content in share point spsnycBaris Bruce Tuncertan
 
How_To_Soup_Up_Your_Farm
How_To_Soup_Up_Your_FarmHow_To_Soup_Up_Your_Farm
How_To_Soup_Up_Your_FarmNigel Price
 
What SQL DBAs need to know about SharePoint-Indianapolis 2013
What SQL DBAs need to know about SharePoint-Indianapolis 2013What SQL DBAs need to know about SharePoint-Indianapolis 2013
What SQL DBAs need to know about SharePoint-Indianapolis 2013J.D. Wade
 
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...J.D. Wade
 
SharePoint Microsoft IT - Swiss Presentation with Joel and Andre
SharePoint Microsoft IT - Swiss Presentation with Joel and AndreSharePoint Microsoft IT - Swiss Presentation with Joel and Andre
SharePoint Microsoft IT - Swiss Presentation with Joel and AndreJoel Oleson
 
What SQL DBAs need to know about SharePoint
What SQL DBAs need to know about SharePointWhat SQL DBAs need to know about SharePoint
What SQL DBAs need to know about SharePointJ.D. Wade
 
SPS Kansas City: What SharePoint Admin need to know about SQL
SPS Kansas City: What SharePoint Admin need to know about SQLSPS Kansas City: What SharePoint Admin need to know about SQL
SPS Kansas City: What SharePoint Admin need to know about SQLJ.D. Wade
 
SharePoint Saturday San Antonio: SharePoint 2010 Performance
SharePoint Saturday San Antonio: SharePoint 2010 PerformanceSharePoint Saturday San Antonio: SharePoint 2010 Performance
SharePoint Saturday San Antonio: SharePoint 2010 PerformanceBrian Culver
 
SharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi VončinaSharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi VončinaSPC Adriatics
 
Effective SharePoint Architecture - SharePoint Saturday Stockholm 2016
Effective SharePoint Architecture - SharePoint Saturday Stockholm 2016Effective SharePoint Architecture - SharePoint Saturday Stockholm 2016
Effective SharePoint Architecture - SharePoint Saturday Stockholm 2016Alistair Pugin
 
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013J.D. Wade
 
Customizing the visual studio 2010 share point deployment process
Customizing the visual studio 2010 share point deployment processCustomizing the visual studio 2010 share point deployment process
Customizing the visual studio 2010 share point deployment processEric Shupps
 
Connected at the hip for MS BI: SharePoint and SQL
Connected at the hip for MS BI: SharePoint and SQLConnected at the hip for MS BI: SharePoint and SQL
Connected at the hip for MS BI: SharePoint and SQLJ.D. Wade
 

Tendances (20)

Getting SharePoint 2010 Deployment Right final
Getting SharePoint 2010 Deployment Right finalGetting SharePoint 2010 Deployment Right final
Getting SharePoint 2010 Deployment Right final
 
Dogfood Conference 2010 - What Every SharePoint 2010 Administrator Must Know
Dogfood Conference 2010 - What Every SharePoint 2010 Administrator Must KnowDogfood Conference 2010 - What Every SharePoint 2010 Administrator Must Know
Dogfood Conference 2010 - What Every SharePoint 2010 Administrator Must Know
 
Workflow Manager Tips & Tricks
Workflow Manager Tips & TricksWorkflow Manager Tips & Tricks
Workflow Manager Tips & Tricks
 
What SharePoint Admins need to know about SQL-Cinncinati
What SharePoint Admins need to know about SQL-CinncinatiWhat SharePoint Admins need to know about SQL-Cinncinati
What SharePoint Admins need to know about SQL-Cinncinati
 
What SQL DBA's need to know about SharePoint-St. Louis 2013
What SQL DBA's need to know about SharePoint-St. Louis 2013What SQL DBA's need to know about SharePoint-St. Louis 2013
What SQL DBA's need to know about SharePoint-St. Louis 2013
 
Tuning Your SharePoint Environment
Tuning Your SharePoint EnvironmentTuning Your SharePoint Environment
Tuning Your SharePoint Environment
 
Maximizing sql 2012 performance for share point 2013 final
Maximizing sql 2012 performance for share point 2013 finalMaximizing sql 2012 performance for share point 2013 final
Maximizing sql 2012 performance for share point 2013 final
 
Storing and managing your content in share point spsnyc
Storing and managing your content in share point spsnycStoring and managing your content in share point spsnyc
Storing and managing your content in share point spsnyc
 
How_To_Soup_Up_Your_Farm
How_To_Soup_Up_Your_FarmHow_To_Soup_Up_Your_Farm
How_To_Soup_Up_Your_Farm
 
What SQL DBAs need to know about SharePoint-Indianapolis 2013
What SQL DBAs need to know about SharePoint-Indianapolis 2013What SQL DBAs need to know about SharePoint-Indianapolis 2013
What SQL DBAs need to know about SharePoint-Indianapolis 2013
 
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...
SharePoint Saturday St. Louis 2014: What SharePoint Admins need to know about...
 
SharePoint Microsoft IT - Swiss Presentation with Joel and Andre
SharePoint Microsoft IT - Swiss Presentation with Joel and AndreSharePoint Microsoft IT - Swiss Presentation with Joel and Andre
SharePoint Microsoft IT - Swiss Presentation with Joel and Andre
 
What SQL DBAs need to know about SharePoint
What SQL DBAs need to know about SharePointWhat SQL DBAs need to know about SharePoint
What SQL DBAs need to know about SharePoint
 
SPS Kansas City: What SharePoint Admin need to know about SQL
SPS Kansas City: What SharePoint Admin need to know about SQLSPS Kansas City: What SharePoint Admin need to know about SQL
SPS Kansas City: What SharePoint Admin need to know about SQL
 
SharePoint Saturday San Antonio: SharePoint 2010 Performance
SharePoint Saturday San Antonio: SharePoint 2010 PerformanceSharePoint Saturday San Antonio: SharePoint 2010 Performance
SharePoint Saturday San Antonio: SharePoint 2010 Performance
 
SharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi VončinaSharePoint 2013 Performance Analysis - Robi Vončina
SharePoint 2013 Performance Analysis - Robi Vončina
 
Effective SharePoint Architecture - SharePoint Saturday Stockholm 2016
Effective SharePoint Architecture - SharePoint Saturday Stockholm 2016Effective SharePoint Architecture - SharePoint Saturday Stockholm 2016
Effective SharePoint Architecture - SharePoint Saturday Stockholm 2016
 
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
What SQL DBAs need to know about SharePoint-Kansas City, Sept 2013
 
Customizing the visual studio 2010 share point deployment process
Customizing the visual studio 2010 share point deployment processCustomizing the visual studio 2010 share point deployment process
Customizing the visual studio 2010 share point deployment process
 
Connected at the hip for MS BI: SharePoint and SQL
Connected at the hip for MS BI: SharePoint and SQLConnected at the hip for MS BI: SharePoint and SQL
Connected at the hip for MS BI: SharePoint and SQL
 

Similaire à SharePoint 2010 database maintenance

Introduction to SharePoint for SQLserver DBAs
Introduction to SharePoint for SQLserver DBAsIntroduction to SharePoint for SQLserver DBAs
Introduction to SharePoint for SQLserver DBAsSteve Knutson
 
Share point 2010 performance and capacity planning best practices
Share point 2010 performance and capacity planning best practicesShare point 2010 performance and capacity planning best practices
Share point 2010 performance and capacity planning best practicesEric Shupps
 
What SQL DBA's need to know about SharePoint
What SQL DBA's need to know about SharePointWhat SQL DBA's need to know about SharePoint
What SQL DBA's need to know about SharePointJ.D. Wade
 
Optimize SQL server performance for SharePoint
Optimize SQL server performance for SharePointOptimize SQL server performance for SharePoint
Optimize SQL server performance for SharePointserge luca
 
Real world business workflow with SharePoint designer 2013
Real world business workflow with SharePoint designer 2013Real world business workflow with SharePoint designer 2013
Real world business workflow with SharePoint designer 2013Ivan Sanders
 
SharePoint Storage Best Practices
SharePoint Storage Best PracticesSharePoint Storage Best Practices
SharePoint Storage Best PracticesMark Ginnebaugh
 
SharePoint Intelligence Real World Business Workflow With Share Point Designe...
SharePoint Intelligence Real World Business Workflow With Share Point Designe...SharePoint Intelligence Real World Business Workflow With Share Point Designe...
SharePoint Intelligence Real World Business Workflow With Share Point Designe...Ivan Sanders
 
Large Scale SQL Considerations for SharePoint Deployments
Large Scale SQL Considerations for SharePoint DeploymentsLarge Scale SQL Considerations for SharePoint Deployments
Large Scale SQL Considerations for SharePoint DeploymentsJoel Oleson
 
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...Knut Relbe-Moe [MVP, MCT]
 
Sps Ottawa - Storing Your Content in SharePoint
Sps Ottawa - Storing Your Content in SharePointSps Ottawa - Storing Your Content in SharePoint
Sps Ottawa - Storing Your Content in SharePointBaris Bruce Tuncertan
 
SharePoint Databases: What you need to know (201504)
SharePoint Databases: What you need to know (201504)SharePoint Databases: What you need to know (201504)
SharePoint Databases: What you need to know (201504)Alan Eardley
 
Espc17 make your share point fly by tuning and optimising sql server
Espc17 make your share point  fly by tuning and optimising sql serverEspc17 make your share point  fly by tuning and optimising sql server
Espc17 make your share point fly by tuning and optimising sql serverIsabelle Van Campenhoudt
 
Make your SharePoint fly by tuning and optimizing SQL Server
Make your SharePoint  fly by tuning and optimizing SQL ServerMake your SharePoint  fly by tuning and optimizing SQL Server
Make your SharePoint fly by tuning and optimizing SQL Serverserge luca
 
Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...
Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...
Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...Datapolis
 
SharePoint Databases: What you need to know (201512)
SharePoint Databases: What you need to know (201512)SharePoint Databases: What you need to know (201512)
SharePoint Databases: What you need to know (201512)Alan Eardley
 
Sql And Storage Considerations For Share Point Server 2010
Sql And Storage Considerations For Share Point Server 2010Sql And Storage Considerations For Share Point Server 2010
Sql And Storage Considerations For Share Point Server 2010Mike Watson
 
SPSMadrid Get sql spinning with SharePoint. Best practice for the back end
SPSMadrid Get sql spinning with SharePoint. Best practice for the back endSPSMadrid Get sql spinning with SharePoint. Best practice for the back end
SPSMadrid Get sql spinning with SharePoint. Best practice for the back endKnut Relbe-Moe [MVP, MCT]
 
Sql Server Tuning for SharePoint : what every consultant must know (Office 36...
Sql Server Tuning for SharePoint : what every consultant must know (Office 36...Sql Server Tuning for SharePoint : what every consultant must know (Office 36...
Sql Server Tuning for SharePoint : what every consultant must know (Office 36...serge luca
 
Best Practices to SharePoint Architecture Fundamentals NZ & AUS
Best Practices to SharePoint Architecture Fundamentals NZ & AUSBest Practices to SharePoint Architecture Fundamentals NZ & AUS
Best Practices to SharePoint Architecture Fundamentals NZ & AUSguest7c2e070
 

Similaire à SharePoint 2010 database maintenance (20)

Introduction to SharePoint for SQLserver DBAs
Introduction to SharePoint for SQLserver DBAsIntroduction to SharePoint for SQLserver DBAs
Introduction to SharePoint for SQLserver DBAs
 
Share point 2010 performance and capacity planning best practices
Share point 2010 performance and capacity planning best practicesShare point 2010 performance and capacity planning best practices
Share point 2010 performance and capacity planning best practices
 
What SQL DBA's need to know about SharePoint
What SQL DBA's need to know about SharePointWhat SQL DBA's need to know about SharePoint
What SQL DBA's need to know about SharePoint
 
Optimize SQL server performance for SharePoint
Optimize SQL server performance for SharePointOptimize SQL server performance for SharePoint
Optimize SQL server performance for SharePoint
 
Optimizing SQL Server 2012 for SharePoint 2013
Optimizing SQL Server 2012 for SharePoint 2013Optimizing SQL Server 2012 for SharePoint 2013
Optimizing SQL Server 2012 for SharePoint 2013
 
Real world business workflow with SharePoint designer 2013
Real world business workflow with SharePoint designer 2013Real world business workflow with SharePoint designer 2013
Real world business workflow with SharePoint designer 2013
 
SharePoint Storage Best Practices
SharePoint Storage Best PracticesSharePoint Storage Best Practices
SharePoint Storage Best Practices
 
SharePoint Intelligence Real World Business Workflow With Share Point Designe...
SharePoint Intelligence Real World Business Workflow With Share Point Designe...SharePoint Intelligence Real World Business Workflow With Share Point Designe...
SharePoint Intelligence Real World Business Workflow With Share Point Designe...
 
Large Scale SQL Considerations for SharePoint Deployments
Large Scale SQL Considerations for SharePoint DeploymentsLarge Scale SQL Considerations for SharePoint Deployments
Large Scale SQL Considerations for SharePoint Deployments
 
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
Unity Connect - Getting SQL Spinning with SharePoint - Best Practices for the...
 
Sps Ottawa - Storing Your Content in SharePoint
Sps Ottawa - Storing Your Content in SharePointSps Ottawa - Storing Your Content in SharePoint
Sps Ottawa - Storing Your Content in SharePoint
 
SharePoint Databases: What you need to know (201504)
SharePoint Databases: What you need to know (201504)SharePoint Databases: What you need to know (201504)
SharePoint Databases: What you need to know (201504)
 
Espc17 make your share point fly by tuning and optimising sql server
Espc17 make your share point  fly by tuning and optimising sql serverEspc17 make your share point  fly by tuning and optimising sql server
Espc17 make your share point fly by tuning and optimising sql server
 
Make your SharePoint fly by tuning and optimizing SQL Server
Make your SharePoint  fly by tuning and optimizing SQL ServerMake your SharePoint  fly by tuning and optimizing SQL Server
Make your SharePoint fly by tuning and optimizing SQL Server
 
Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...
Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...
Datapolis Guest Expert Presentation: Top 15 SharePoint Server Configuration M...
 
SharePoint Databases: What you need to know (201512)
SharePoint Databases: What you need to know (201512)SharePoint Databases: What you need to know (201512)
SharePoint Databases: What you need to know (201512)
 
Sql And Storage Considerations For Share Point Server 2010
Sql And Storage Considerations For Share Point Server 2010Sql And Storage Considerations For Share Point Server 2010
Sql And Storage Considerations For Share Point Server 2010
 
SPSMadrid Get sql spinning with SharePoint. Best practice for the back end
SPSMadrid Get sql spinning with SharePoint. Best practice for the back endSPSMadrid Get sql spinning with SharePoint. Best practice for the back end
SPSMadrid Get sql spinning with SharePoint. Best practice for the back end
 
Sql Server Tuning for SharePoint : what every consultant must know (Office 36...
Sql Server Tuning for SharePoint : what every consultant must know (Office 36...Sql Server Tuning for SharePoint : what every consultant must know (Office 36...
Sql Server Tuning for SharePoint : what every consultant must know (Office 36...
 
Best Practices to SharePoint Architecture Fundamentals NZ & AUS
Best Practices to SharePoint Architecture Fundamentals NZ & AUSBest Practices to SharePoint Architecture Fundamentals NZ & AUS
Best Practices to SharePoint Architecture Fundamentals NZ & AUS
 

Dernier

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 

Dernier (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 

SharePoint 2010 database maintenance

  • 1. SharePoint 2010 Database Maintenance Matt Ranlett Senior Technology Architect @mranlett facebook.com/mranlett
  • 2. 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 @mranlett facebook.com/mranlett I’ve lost 75 pounds since this photo was taken!
  • 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?
  • 6. Supported Versions of SQL Server SharePoint Server 2010 Functionality SQL Server 2008 R2 Enterprise SQL Server 2008 R2 Standard SQL Server 2008 R2 Express SQL Server 2008 Enterprise SQL Server 2008 Standard SQL Server 2008 Express SQL Server 2005 Enterprise SQL Server 2005 Standard SharePoint Server 2010 64-bit only 64-bit only 64-bit only 64-bit only Service Pack (SP) 1, Cumulative Update (CU) 2 required, CU5 or later recommended 64-bit only SP1, CU2 required, CU5 or later recommended 64-bit only 64-bit only SP3 CU3 required 64-bit only SP3 CU3 required Remote BLOB storage (RBS) on a non-local device Requires RBS add-in from the SQL Server 2008 R2 Feature Pack. X X RBS on a local device. Requires RBS add-in from the SQL Server 2008 R2 Feature Pack. X X X X X X Backup compression X X X Data compression for the Search Crawl and Property databases X X Table partitioning for Web Analytics Reporting databases X X Transparent data encryption X X Resource governor X X Database auditing X X Clustered database server X (faster recovery) X 2 nodes only X (faster recovery) X 2 nodes only X (faster recovery) X 2 nodes only 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 Name Size and Growth Read/Write Characteristic s Scaling Method Recover y Model Backup mechanisms Mirror within farm Mirror / log ship to another farm SharePoint_Admi nContent_GUID Small Varies can only scale up - one DB per farm Full SharePoint backup, SQL Server, DPM Yes No SharePoint_Confi g Small with large log files read-intensive can only scale up - one DB per farm Full SharePoint backup, SQL Server, DPM Yes No Configuration Databases
  • 8. SharePoint 2010 Foundations Databases Name Size and Growth Read/Write Characteristic s Scaling Method Recover y Model Backup mechanisms Mirror within farm Mirror / log ship to another farm WSS_Content Recommend ed to limit size to < 200Gb* up to 1 TB supported in some scenarios Varies Can scale up or split additional site collections to new databases Full SharePoint backup, SQL Server, DPM Yes Yes Content Databases
  • 9. SharePoint 2010 Foundations Databases Name Size and Growth Read/Write Characteristic s Scaling Method Recover y Model Backup mechanisms Mirror within farm Mirror / log ship to another farm WSS_UsageApplic ation Extra large write- intensive can only scale up - one DB per farm Simple SharePoint backup, SQL Server, DPM Yes but why bother Yes but why bother WSS_Logging Health Databases
  • 10. SharePoint 2010 Foundations Databases Name Size and Growth Read/Write Characteristic s Scaling Method Recover y Model Backup mechanisms Mirror within farm Mirror / log ship to another farm Application_Regist ry_Service_DB_G UID Small read-intensive can only scale up - one DB per farm Full SharePoint backup, SQL Server, DPM Yes No Bdc_Service_DB_ GUID Small read-intensive can only scale up - one DB per farm Full SharePoint backup, SQL Server, DPM Yes No Application Databases
  • 11. 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
  • 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 – PowerShell New-SPConfigurationDatabase -DatabaseName "SharePointConfigDB1" -DatabaseServer "SQL-01" -Passphrase (ConvertTo-SecureString "MyPassword" -AsPlainText -force) -FarmCredentials (Get-Credential)
  • 14. 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
  • 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.
  • 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
  • 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 – AvePoint – Quest
  • 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.
  • 29. Matt Ranlett @mranlett facebook.com/mranlett mranlett@devcow.com www.devcow.com Check out the SharePoint Pro Connections magazine article this presentation is based on: http://www.sharepointproconnections.com/article/microsoft-products/Database-Maintenance-for-SharePoint-.aspx

Notes de l'éditeur

  1. 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.
  2. 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