Top 10 DBA Mistakes on SQL Server

Slides:



Advertisements
Similar presentations
Kevin Kline Director of Engineering Services, SQL Sentry SQL Server MVP since 2003 Twitter, FB, LI: KEKline Blog:
Advertisements

Challenge for all the Seniors (DBAs) QuestionAreaYou (Today) You (6 Months) You (1 Year) 1Design Tables 2Write Queries 3Deploy Changes 4Tune Queries 5Monitor.
SQL Server Best Practices Keep Your Database In Top Performance Shape and Maintain Effective Backups September, 2007 Richard Kokoski.
Utility Database Chris
Connect with life Praveen Srvatsa Director | AsthraSoft Consulting Microsoft Regional Director, Bangalore Microsoft MVP, ASP.NET.
Copyright © 2007 Quest Software The Changing Role of SQL Server DBA’s Bryan Oliver SQL Server Domain Expert Quest Software.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
Chapter 2. Creating the Database Environment
Maintaining a Mirrored Database Tips and Tricks by Paul G. Hiles.
© 2010 Quest Software, Inc. ALL RIGHTS RESERVED Top 10 Admin Mistakes on Microsoft SQL Server Kevin Kline, Quest Software Microsoft MVP since 2004.
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
A networking group dedicated to improving infrastructure, workflows, and support across the Entertainment Industry.
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
TOP10 DEV SKILLS TO MAKE YOUR DBA HAPPY Kevin Kline Director of Engineering Services, SQL Sentry SQL Server MVP since 2004 Twitter, FB, LI: KEKline Blog:
Week 7 : Chapter 7 Agenda SQL 710 Maintenance Plan:
A ConfigMgr 2012 Site Review MMS Minnesota 2014 Kent Agerlund / Steve Thomson.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
Strategies for Working with Texas-sized Databases Robert L Davis Database Engineer
Rob Sewell Making PowerShell Useful Real-Life Examples of Powershell in Action Slides available here -
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
Kevin Kline Director of Engineering Services, SQL Sentry SQL Server MVP since 2003 Twitter, FB, LI: KEKline Blog:
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.
New Instance… Now What? Presented by: James Donahoe Senior Solutions Engineer – TeleTracking Technologies MCSA: SQL Server 2012.
Dealing with Database Corruption DBA 911. Who am I? 2 David M Maxwell twitter.com/dmmaxwell or twitter.com/upsearchsqltwitter.com/dmmaxwelltwitter.com/upsearchsql.
SQLSTARTER - INTRO TO DATABASE DEVELOPMENT Kevin Kline Technical Evangelist, SQL Sentry SQL Server MVP since 2003 Twitter, FB, LI, KEKline Blog:
SQL Database Management
Securing SQL Server Processes with Certificates
You Inherited a Database Now What?
Tips for SQL Server Performance and Resiliency
Performance Management
Get to know SQL Manager SQL Server administration done right 
Lead SQL BankofAmerica Blog: SQLHarry.com
Benchmarking the forgotten Role of Performance Tuning
Trial.iO Makes it Easy to Provision Software Trials, Demos and Training Environments in the Azure Cloud in One Click, Without Any IT Involvement MICROSOFT.
Database Corruption Advanced Recovery Techniques|
Always On Multi-Site Patterns
Designing Database Solutions for SQL Server
Summit Nashville /28/2018 8:42 PM
Introduction.
Where to Start, What You Need
Simplifying XEvents Management with dbatools
Upgrading to Microsoft SQL Server 2014
QuickBooks is a high-tech accounting software that is trusted by millions of small and mid-sized business owners across the world. However, despite being.
Tips for SQL Server Performance and Resiliency
Database Corruption Advanced Recovery Techniques
Performance Tuning for Mere Mortals Part II
Making PowerShell Useful
Migrating your SQL Server Instance
Peter Shore SQL Saturday Cleveland 2016
Turbo-Charged Transaction Logs
Performance Tuning for Mere Mortals Part II
Microsoft Virtual Academy
AIMS for BizTalk, Built on the Microsoft Azure Platform, Empowers Enterprises to Automate Insight and Analytics and Boost Value Creation MICROSOFT AZURE.
Making PowerShell Useful
Microsoft Virtual Academy
SQL Server Performance Tuning
Workshop.
Transaction Log Internals and Performance David M Maxwell
You Inherited a Database Now What?
Microsoft Virtual Academy
Andy Puckett – Sales Engineer
Governing Your Enterprise with Policy-Based Management
Using wait stats to determine why my server is slow
SQL Starter Intro To Database Administration
Making Row Level Security and Dynamic Data Masking work for you.
OU BATTLECARD: Oracle Database 12c
Presentation transcript:

Top 10 DBA Mistakes on SQL Server

The One Platform for Physical, Virtual, and Cloud Performance. SentryOne™ empowers Microsoft data professionals to monitor, diagnose, and optimize performance across physical, virtual, and cloud resources. The SentryOne platform delivers seamless integration for all of our solutions, enabling users to determine the true cause of performance issues, and reduce consumption and infrastructure costs. http://SentryOne.com/BookADemo

The One Platform for Physical, Virtual, and Cloud Performance. Free Resources The One Platform for Physical, Virtual, and Cloud Performance. Free e-books In these books, you will find useful, hand-picked articles that will help give insight into some of your most vexing performance problems. These articles were written by several of the SQL Server industry's leading experts, including Aaron Bertrand, Paul White, Paul Randal, Jonathan Kehayias, Erin Stellato, Glenn Berry, and Joe Sack. http://www.sentryone.com/sql-server-books/ Websites SQLPerformance.com provides innovative and practical solutions for improving SQL Server performance. Answers.SQLPerformance.com is a question and answers site where you can upload query plans directly from Plan Explorer and have questions answered from execution plan analysis expert Paul White, among others. SQLSentry.TV offers an inside look into the world of SentryOne with videos on query tuning and product demos. Blogs.SentryOne.com is where you can find all of our team members’ blogs as well as important information about the latest updates to SentryOne software, SQL Server and server performance issues.

Kevin Kline Technical Evangelist for SentryOne Your Presenter Microsoft Data Platform MVP Contact Info Twitter : @Kekline Email : KKline@SentryOne.com Blog : http://blogs.SentryOne.com/author/kevinkline/ LinkedIn : https://www.linkedin.com/in/kekline/

Other Top SQL Server Mistakes Excludes SQL Server mistakes that are primarily development or design in nature: Inadequate normalization and database design Unknown scalability requirements No baselines or benchmarks Indexing issues Query tuning ignorance

10. Storage – Thinking space but not performance Frequently think about disk subsystems only in terms of disk space, not IO load. Without this knowledge, the following problems occur: Inadequate fault tolerance Insufficient IO: OLTP requires high transactions/sec OLAP requires high MB transfers/sec Poor choice of RAID type, controllers, channels Not enough disk spindles SSD is a game changer for IO!

What is checkpoint? Lazywriter? 9. Business Ignorance As the IT professional, you should know how SQL Server works at an “internals” level. What is checkpoint? Lazywriter? How is TempDB used? What’s in the plan cache? The DBA is the guardian of the corporate data assets. As the liaison between business and IT, you should know how and in what ways your servers are used. Who cares if this app is down? How much does the downtime cost the company? What are the business cycles? When are the best downtimes? Baseline? Benchmarks? What is normal? For more tech info: SQLPASS.org SQLPerformance.com

Bonus Blunder: Not Asking …for help: Forums vs Support: know the value #sqlhelp and Twitter

8. No Troubleshooting Methodology When the chips are down, the DBA needs a strong, step-by-step methodology for root-cause analysis. Without one, you get: Missed errors and problems Errors resulting data loss and catastrophic failure Poor response times and breached SLAs Lost credibility Don’t have a methodology? Check out End-to-End Troubleshooting on: http://sqlsentry.tv/end-to-end-troubleshooting-on-microsoft-sql-server/ SQL Server Troubleshooting Guide by J. Kehayias on: https://www.simple-talk.com/books/sql-books/troubleshooting-sql-server-a-guide-for-the-accidental-dba/ Mention the book “Checklist Manifesto”, site examples like nurses routines on checklist reducing 47% errors when medicating patients. Where to start How to use the native troubleshooting tools: Error logs & automated error notification SQL Profiler and server-side traces PerfMon Query plans

Bonus Blunder: Reactive not proactive In the SQL Server Management Studio, select the Instance >> SQL Server Agent >> Alerts >> Rt-click New Alert >> Type in an alert name >> Select the Severity Radio Button >> Choose the appropriate severity level from the drop-down list. Note that you can also create performance alerts, such as “alert me when buffer cache hit ratio drops below 80%”. However, you have to know what PerfMon counter and what value of that counter you want SQL Server Agent to watch for. Once you’ve created the alert, you then want to set the response. Typically, your response will be to email a first responder, such as the DBA, though you could also execute a T-SQL job.

7. Going with the defaults SQL Server installation defaults are intended to get the server up and running, but not running optimally: Auto-grow and Auto-shrink on databases Auto sizing of auto-growing databases Default filegroups Minor issues can become major issues: MAXDOP FILLFACTOR Many server- and database-level configuration settings

6. Security as an afterthought SQL Injection is the #1 hack on the internet today. Remarkably, we knew as much about preventing SQL Injection ten years ago as we do today. Plan ahead of time to minimize issues: Ensure the least privileges principle for applications running on your servers How much surface area do your servers expose? Who has access to your servers? How do you find out the who, what, and when of a breach? See my session Understanding & Preventing SQL Injection at https://sqlbits.com/Sessions/Event8/Understanding_and_Preventing_SQL_Injection_Attacks

5. Inadequate Automation Automation is the means by which DBAs work “smarter” instead of “harder”. Ironically, it takes a lot of work at the outset to automate. Without automation, DBAs must deal with: Manual processes prone to error, omission, and forgetfulness Inability to scale environment to multiple servers Time constraints from fire-fighter and script-pusher modes Examples of working smarter instead of harder: Automated error notification Scheduled jobs Lots of scripts, not too much GUI Automation made easy with PowerShell and/or WMI: PowerGUI Scriptomatic

4. Wrong feature or technique for the job DBA’s are the “performance engineer” for their corporation’s IT applications. It’s imperative that the most appropriate feature be applied to each business requirement. Otherwise: Brittle applications Applications complexity Excess resource consumption “Ooooh! Shiny!” Design reflects the current “fad” Axiom: There are no IT projects. There are business projects solved using IT.

3. Apathy about change management Change management is important! Without it, DBAs face: Changes that leave things worse than they started Piecemeal rollbacks that cripple applications Inconsistent support across applications and servers Change control versus Change management? Proper change management means: Key stakeholders have a say in Go-NoGo (CM board) Performed at pre-planned times and within a defined time limit Change is tested and verified to have no effect or positive effect on production environment Changes are isolated, atomic, and reversible

2. Inadequate Preventative Maintenance Proper preventative maintenance (PM) helps you: Catch issue before they become problems Ensure optimal performance Perform resource intensive operations with few, if any, users on the system PM on SQL Server should include: Database consistency checks (DBCC) and CHECKIDENT Backups with verification followed by restore checks Defragmentation, Fill factor, Pad Index Index and Statistic maintenance Full app recovery (logins in Master, jobs in MSDB, repl, etc)

Bonus Blunder: Reinventing the wheel Most preventative maintenance tasks have already been written and vetted by others. Check out: Ola.hallengren.com www.midnightsql.com/minion

1. Backups <> Recovery DBAs often don’t test backups or recoveries as they should. Causes lots of problems: Can you meet your SLA? RTO? RPO? Not certain that backups are good: verified and available? Where’s all the data, files, DLLs, etc for recovery? Got all of the databases that are needed? Haven’t tested a full, ground-up restore: What if you have to reinstall everything? One of the great things about VM recovery! The importance of recovery: the Lost Job scenario Can you actually restore older, archived data? It’s All About The Data, All The Time, Every Time

2. Most DBA blunders are due to process and business issues: Summary Let’s connect! Facebook, LinkedIn, Twitter at KEKLINE. Email at KKline@SentryOne.com More slides at http://slideshare.net/kkline84 More videos at http://SQLSentry.TV 1. Only a few big DBA blunders are due to tech skills: Disks as space, not IO No troubleshooting methodology Going with the defaults 2. Most DBA blunders are due to process and business issues: Security as an afterthought Wrong features Change management Preventative maint & automation Backups <> Recovery