Database Optimization & Maintenance Tim Richard. 2013 ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity.

Slides:



Advertisements
Similar presentations
Burt King We will cover: Essentials --No command line needed here (mott) What is SQL Server How does it come to life What are the.
Advertisements

2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
Big Data Working with Terabytes in SQL Server Andrew Novick
Brad M McGehee Microsoft SQL Server MVP Director of DBA Education Red Gate Software
SQL Server 2005 Implementation and Maintenance Chapter 10: Maintaining and Automating SQL Server.
Administering Microsoft SQL Server 2012 Databases.
SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.
Backup, Integrity Check and Index and Statistics Maintenance
Proper Care and Feeding of your SQL MDB -Recommendations for General MDB Maintenance -Read the notes on the foils! -Revised October
CS27510 Commercial Database Applications. Maintenance Maintenance Disaster Recovery Disaster Recovery.
AGENDA Tools used in SQL Server 2000 Graphical BOL Enterprise Manager Service Manager CLI Query Analyzer OSQL BCP.
Designing Custom Maintenance Plans with TSQL By John Miner.
Optimizing SQL Server 2012 for SharePoint 2013 SharePoint Saturday/Friday, Honolulu March 27, 2015.
Today’s Agenda Chapter 12 Admin Tasks Chapter 13 Automating Admin Tasks.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
Module 1: Introduction to Microsoft SQL Server 7.0.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
1 Chapter Overview Creating a User Database Setting Database Options Managing User Database Size Placing Database Files on Multiple Disks.
Stephan Hurni Consultant Trivadis AG, SQL Server notes from the field.
Module 3: Managing Database Files. Overview Introduction to Data Structures Creating Databases Managing Databases Placing Database Files and Logs Optimizing.
Chapter 18: Windows Server 2008 R2 and Active Directory Backup and Maintenance BAI617.
Maintaining a Mirrored Database Tips and Tricks by Paul G. Hiles.
1 Microsoft Exchange 2000 Server Maintenance and Troubleshooting System Maintenance and Monitoring Database Operation and Maintenance Backup, Restore,
1 SQL Server 2000 Administration Kashef Mughal MSB.
Chokchai Junchey Microsoft Product Specialist Certified Technical Training Center.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.
Module 16: Performing Ongoing Database Maintenance
Module 6: Implementing SQL Server Replication in an Enterprise Environment.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
Week 7 : Chapter 7 Agenda SQL 710 Maintenance Plan:
SQL Server 2000 Sys Admin Jeremiah Curtis Engineering Services
1 Chapter Overview Defining Operators Creating Jobs Configuring Alerts Creating a Database Maintenance Plan Creating Multiserver Jobs.
1 Chapter Overview Understanding Data Restoration Issues Understanding the Types of Database Backups Understanding the Restoration Process.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
Maintenance Practices. Goal  Automate the necessary DBA chores to put organizations on the path of having healthier, consistent and more trustworthy.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
SQL SERVER MAINTENANCE PLANS Kat
Strategies for Working with Texas-sized Databases Robert L Davis Database Engineer
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
You Inherited a Database Now What? What you should immediately check and start monitoring for. Tim Radney, Senior DBA for a top 40 US Bank President of.
Database Administration for the Non-DBA Denny Cherry twitter.com/mrdenny.
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
Indexing strategies and good physical designs for performance tuning Kenneth Ureña /SpanishPASSVC.
Hitting the SQL Server “Go Faster” Button Rob Douglas #509 | Brisbane 2016.
SQL Server DBA Online TrainingSQL Server DBA Online Training.
ProgressBook Suite Maintenance
You Inherited a Database Now What?
Automated Restore Script Output for Ola Hallengren’s Maintenance Solution 1) Start SQL Services on Local 2) Connect to Azure AlwaysOn 3) Delete all maintenance.
SQL Replication for RCSQL 4.5
Hitting the SQL Server “Go Faster” Button
Common SQL Server Mistakes and How to Avoid Them
Planning an Effective Upgrade from SQL Server 2008
Finding more space for your tight environment
Designing Database Solutions for SQL Server
Installation and database instance essentials
Introduction to SQL Server Management for the Non-DBA
Software Architecture in Practice
Introduction of Week 3 Assignment Discussion
Dynamics AX Performance
Hitting the SQL Server “Go Faster” Button
The Ultimate Maintenance Plan By Ed Roepe Perimeter DBA, LLC
Re-Indexing - The quest of ultimate automation
Peter Shore SQL Saturday Cleveland 2016
The Ultimate Maintenance Plan By Edward Roepe Perimeter DBA, LLC
It’s TEMPDB Why Should You Care?
Recommending Materialized Views and Indexes with the IBM DB2 Design Advisor (Automating Physical Database Design) Jarek Gryz.
You Inherited a Database Now What?
Sql Saturday Philadelphia
Presentation transcript:

Database Optimization & Maintenance Tim Richard

2013 ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity Optimization Tips and Recommendations

2013 ECM Training Conference#dbwestECM SQL Server: Databases Five system databases on a SQL Server instance – master – model – msdb – TempDB – Resource database

#dbwestECM System Database Recommendations Pre-size TempDB and the transaction log Create multiple files for TempDB Resist shrinking the database

#dbwestECM SQL Server Configuration Parallelism Memory TempDB – Create multiple files ODBC drivers – Verify client version vs. server – Verify most recent version

2013 ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity Optimization Tips and Recommendations

#dbwestECM The OnBase DB What information does it store? – Critical component in an OnBase solution Data Performance

#dbwestECM Before you create the database… Where should the files be located? – This is a business decision – If you’re not sure where to put them… Refer to the Database Installation Guide on Community Where should the files ideally be located? – On drives that can provide the necessary response time (1-5 ms log writes, > 10 ms data writes) – RAID 1+0, 15K

#dbwestECM Sizing Sizing guide from DRG Check existing utilization – Pay attention to size on disk vs. % utilized

Estimating Database Size DBSpacePercentage of total DBSpace133 DBSpace27 DBSpace34 DBSpace40 DBSpace50 DBSpace66 DBSpace71 DBSpace81 DBSpace99 DBSpace106 DBSpace2i6 DBSpace3i9 DBSpace6i7 DBSpace9i11

#dbwestECM Hyland Customer DB Size Small < 20 GB < 10,000,000 documents Medium/Large < 100 GB < 100,000,000 documents Enterprise > 100 GB > 100,000,000 documents

#dbwestECM Auto-File Growth Settings What should File Growth be for each DBSpace? – 5 for 3*, 4, 5, 3i* – 100 for 7, 8 – 512 for 1, 2, 6, 9, 10, 2i, 6i, 9i

2013 ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity Optimization Tips and Recommendations

#dbwestECM Backups: what you need to know first Evaluate your current backup process – How often are backups taken (full, diff, log)? – Where are copies stored on site? – Where are copies stored off site? – How often are tapes/disks/etc. rotated?

#dbwestECM Backups: what you need to know next Determine your recovery strategy – RPO = Recovery Point Objective – RTO = Recovery Time Objective – Do you need High Availability? Establish a SLA Test, test, test, and then test again

#dbwestECM Backup Tasks When was last backup? When was last transaction log backup? Creating a backup – Full vs. differential vs. log Set up a maintenance plan Restore the backup

2013 ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity Optimization Tips and Recommendations

#dbwestECM Integrity checks: what you need to do Create a job to check integrity on a regular basis Create alerts to monitor for errors: – 823: Page not read – 824: Torn page – 825: Impending trouble Regularly check hardware for problems

#dbwestECM Integrity Tasks Run CHECKDB Page verify option Set up a maintenance plan Set up alerts

2013 ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity Optimization Tips and Recommendations

#dbwestECM Optimizations: what you need to do Rebuild indexes on a regular basis Update statistics with 100% sample Update index statistics AND column level statistics

#dbwestECM Updating Statistics As part of Index Rebuilds – Only updates index statistics – 100% sample Automatically – When 20% of the rows change – Not 100% sample – Enables query optimization in 2005 & 2008* Manually (UPDATE STATISTICS or sp_updatestats)

#dbwestECM Optimization Tasks - Fragmentation Rebuild – >40% fragmentation – Offline Reorganize – >10% and <40% fragmentation – Online Typically fragmented tables – Itemdata10 – Itemlc – Keyword tables

#dbwestECM Optimization Best Practices Rebuild indexes regularly Use 100% sample for statistics Differences in SQL 2000 vs. 2005/2008 Revisit maintenance plans

2013 ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity Optimization Tips and Recommendations

#dbwestECM User’s Role in Performance Database is a shared resource – Each activity consumes part of the resource Best Practice for User Searches – Retrieve < 100 documents – Selective search criteria – Use Keywords and Dates – Avoid Leading Wildcards

#dbwestECM Suggestions Keyword creation – Smart keywords, use Keyword Type Groups if possible Educate users on negative effects of actions Be cautions with API programs/VB Scripts (performance) Utilize Custom Queries Disable Document List Refresh Enable Document Type Query Restrictions

#dbwestECM More Suggestions Setup required keyword for retrieval Enable option to select user range of batches in Committed queues Security Keywords – EQUAL vs. NOT EQUAL – Perform Security Keyword Checking During Database Query Other Database Settings (Utils) Tuning Parameters (Client and ini file)

Hyland Communities

Thank You!