Tips for SQL Server Performance and Resiliency

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

SQL Server Disaster Recovery Chris Shaw Sr. SQL Server DBA, Xtivia Inc.
5 Common SQL Server Performance Issues Jason Hall-SQL Sentry, Dir of Client Services Blog-jasonhall.blogs.sqlsentry.net.
Common Mistakes Developers Make By Bryan Oliver SQL Server Mentor at SolidQ.
FlareCo Ltd ALTER DATABASE AdventureWorks SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS Slide 1.
Database Optimization & Maintenance Tim Richard ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity.
Managing a “0 Downtime” Shop Chris Shaw:
Managing a “0 Downtime” Shop Session Code Session Title About Me 15 years as a DBA (Wells Fargo, Anthem, Yellow Pages, Pulte…) SQL.
Backup, Integrity Check and Index and Statistics Maintenance
Utility Database Chris
CS27510 Commercial Database Applications. Maintenance Maintenance Disaster Recovery Disaster Recovery.
Today’s Agenda Chapter 12 Admin Tasks Chapter 13 Automating Admin Tasks.
DBA Quick Start What do you do when you’ve fallen into a job as a DBA? Take a deep breath, Find out what you’ve got, And dive right in!
Virtual techdays INDIA │ September 2011 Tips for Successful SQL Server Deployment in Enterprise Environment Balmukund Lakhani │ Technical Lead –
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 3 Administration of Users.
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.
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
SQL School is strongly committed to provide COMPLETE PRACTICAL REALTIME Trainings on SQL Server Technologies – Dev, SQL DBA, MSBI (SSIS, SSAS, SSRS) and.
Presented by, MySQL & O’Reilly Media, Inc. Top considerations for backup of MySQL Dmitri Joukovski, Zmanda.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
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
Linkedin: dennisegraham Dennis E Graham Reporting For SQL Health.
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.
DBA Quick Start What do you do when you’ve fallen into a job as a DBA? Take a deep breath, Find out what you’ve got, And dive right in!
New Instance… Now What? Presented by: James Donahoe Senior Solutions Engineer – TeleTracking Technologies MCSA: SQL Server 2012.
Disaster Recovery Scenarios René Romo González DBA at Intel Second Meetup DBA100.
ProgressBook Suite Maintenance
The Ultimate SharePoint Admin Tool
Backups for Azure SQL Databases and SQL Server instances running on Azure Virtual Machines Session on backup to Azure feature (manual and managed) in SQL.
Chris Index Feng Shui Chris
Benchmarking like a PRO
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.
Tips for SQL Server Performance and Resiliency
Common Methods Used to Commit Computer Crimes
Get to know SQL Manager SQL Server administration done right 
Interview Tips Chris Shaw
Database Corruption Advanced Recovery Techniques|
Disaster Recovery and SQL for new and non-DBAs
Common SQL Server Mistakes and How to Avoid Them
Peter Shore SQL Saturday Pittsburgh 2017
Building Effective Backups
Summit Nashville /28/2018 8:42 PM
SQL Server May Let You Do It, But it Doesn’t Mean You Should
Tips for SQL Server Performance and Resiliency
Director of Database Administration with Paymetric, Inc. 
The Ultimate Maintenance Plan By Ed Roepe Perimeter DBA, LLC
Making Your Emergency Toolkit
What’s new in SQL Server 2016 Availability Groups
Migrating your SQL Server Instance
Backup and Restore your SQL Server Database
Example of a page header
Peter Shore SQL Saturday Cleveland 2016
Turbo-Charged Transaction Logs
Backup to Basics Tom Fox
The Ultimate Maintenance Plan By Edward Roepe Perimeter DBA, LLC
Disaster Recovery is everyone’s job!
Database hidden disasters…
You Inherited a Database Now What?
Use PowerShell & dbatools to Manage your SQL Server Environment
AWS S3 Cloud Backup Licensing per system Starting at $79 per year.
Jean Joseph DBA\DEVELOPER
Sql Saturday Philadelphia
Using wait stats to determine why my server is slow
Managing the mystery database
Managing the mystery database
The DBA Quit and now you’re it:
Presentation transcript:

Tips for SQL Server Performance and Resiliency Chris Shaw| Chris@SQLShaw.com

Basis of Presentation This presentation is built from my observations while working with SQL Server. Included are the items that I see on a repeating basis that impact not only how SQL Server performs but the resiliency of SQL Server. 19 years as a DBA 3 years as a Virtual DBA Currently monitoring close to 200 SQL Server Monitoring database servers since 1999 Over 300 Health Checks performed recently

ASSUMPTIONS These tips are based on common occurrences I have witnessed, your mileage may very. If you have a question feel free to stop me to ask. However, I may have to move past it depending on time. If I do, we can touch base after the session. Email Me - It’s Ok - cshaw@xtivia.com I ask you, help me make this presentation better, if you have suggestions please review the session. If you liked the session please review the session. Lets get started…

Tip 1 - BACKUPS Many backup strategies are designed backwards Start with the question, how much data can we lose Then ask what do we need backed up (CLR, Certificates, anything outside the database) Recovery Modes If full then backup the log or the transaction log will revolt and eat your storage Then determine how you are going to back up 3rd party tools (LiteSpeed, SQLServer Backup Pro, Veem) Secure your backup Encrypt it Store it off site Testing your backups (We shouldn’t need to talk about this…)

Tip 2 - SECURITY Everyone does not need to be an SA Don’t determine permissions based on trust. A DBA’s job has nothing to do with trust Everyone does not need DBO Access Permissions of least privilege (just enough to do what is required) Builtin\Administrators Did I mention you should secure your backups Enforce Windows Policy Management Week Passwords (Check Them Passwords) PWDCOMPARE() being removed after SQL Server 2014 Service Accounts Stay away from Domain Admins Linked Servers Connecting as SA

Tip 3 - MAINTENANCE Fragmented Indexes We could do a whole day on indexes alone, in short maintain them. Ola Hallengren (https://ola.hallengren.com/) SQL Fool (http://sqlfool.com/) XTIVIA has one as well where we track the history of index fragmentation Stale Statistics Consistency Checks Monitoring Database Mail, Alerts, Operators (alerts script)

Tip 4 – HAVE A BASELINE Baselines will provide you with a starting point to determine the performance of your server. Determine what is normal for your server. What should you baseline? When During Business Hours After Hours In Season At Rest What Performance Monitor Counters (It’s your Friend) Wait Stats Configurations (SQL Server, OS, Hardware) Job Executions

Tip 5 – MANAGE YOUR MEMORY Max Memory Setting Starving the OS Min Memory Setting VMWare/HyperV Lock Pages in Memory SQL Server Error Log Overuse/Underuse Cycle those Error Log Retention

Tip 6 – CHANGE MANAGEMENT No Change History History not searchable No Change Management Review of Changes Documented Changes Communication Changes not scripted/Made in the UI. No Roll Back Scripts

Tip 7 – DISASTER RECOVERY PLANS Don’t ignore the basics RPO – Recovery Point Objectives RTO – Recovery Time Objectives Not paying attention to the details, 2 power plugs one circuit Have a plan at all Testing your DR Over Engineering

Tip 8 - TempDB Fast Storage Located on different spindles then other database files Recovery Model – Simple Multiple Files All the same size One data file per CPU (no more than 8) Initial Database Size Manage File Growth Size Less frequent larger growths

Tip 9 – SHRINKING DATABASES Auto Shrink Jobs created to shrink Shrinking the database in the maintenance plan Shrink is not always a bad thing Shrinking without understanding the downstream impacts, is a bad thing Reindex after shrinking

Tip 10 - STORAGE Knowing how to tell if you have a performance issue Monitoring Storage Space Testing storage SQLIO HammerDB File Locations Isn't it all the same with SAN AutoGrow Perform Volume Maintenance

Platinum Level Sponsors Gold Level Sponsors Venue Sponsor Key Note Sponsor Pre Conference Sponsor

Silver Level Sponsors Bronze Level Sponsors

Q&A - THANK YOU! QUESTIONS? Chris Shaw CShaw@xtivia.com @SQLShaw www.xtivia.com