Making Your Emergency Toolkit

Slides:



Advertisements
Similar presentations
Advanced Oracle DB tuning Performance can be defined in very different ways (OLTP versus DSS) Specific goals and targets must be set => clear recognition.
Advertisements

Insert Presentation Title Heremm.dd.yy, City, ST SQL Reporting Services – Building the Report Kevin Ford Services Consaultant Accela, Inc.
Alwayson Availability Groups
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
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.
No more waiting. Sponsors About me  Database Technology Specialist  MVP  Blogger  Author 3
New Instance… Now What? Presented by: James Donahoe Senior Solutions Engineer – TeleTracking Technologies MCSA: SQL Server 2012.
Hitting the SQL Server “Go Faster” Button Rob Douglas #509 | Brisbane 2016.
MANAGEMENT DATA WAREHOUSE AND DATA COLLECTOR Ian Lanham.
Use Cases for In-Memory OLTP Warner Chaves SQL MCM / MVP SQLTurbo.com Pythian.com.
An introduction to Wait Statistics
SQL Server Security & Intrusion Prevention
You Inherited a Database Now What?
Tips for SQL Server Performance and Resiliency
Performance Management
Troubleshooting SQL Server high CPU usage
Execution Planning for Success
SQL Server Data Collector From Every Angle
Hitting the SQL Server “Go Faster” Button
Database Corruption Advanced Recovery Techniques|
Very Large Databases in your future
A digital reference guide for database administrators
Summit Nashville /28/2018 8:42 PM
Please Support Our Sponsors
Where to Start, What You Need
SQL Server May Let You Do It, But it Doesn’t Mean You Should
Troubleshooting Service Broker
Tips for SQL Server Performance and Resiliency
Tips for SQL Server Performance and Resiliency
Making PowerShell Useful
Hitting the SQL Server “Go Faster” Button
Database Corruption Advanced Recovery Techniques
Performance Tuning for Mere Mortals Part II
Understanding and Handling Database Corruption
5 WAYS TO BYPASS *OR ENSURE* SQL SERVER SECURITY MATT MARTIN
Making PowerShell Useful
Re-Indexing - The quest of ultimate automation
Use PowerShell & dbatools to Manage your SQL Server Environment
Example of a page header
Deep Dive into Adaptive Query Processing
Welcome to SQL Saturday Denmark
Database Corruption Advanced Recovery Techniques
Turbo-Charged Transaction Logs
Performance Tuning for Mere Mortals Part II
TEMPDB – INTERNALS AND USAGE
Troubleshooting beyond what you understand
Database Corruption Advanced Recovery Techniques
PASS SQLSATURDAY MANCHESTER 2018 SPEAKERS NAME SESSION
PowerShell & PowerBi Reducing DBAs Context Switching
Making PowerShell Useful
PowerShell & PowerBi Reducing DBAs Context Switching
PowerShell & PowerBi Reducing DBAs Context Switching
PowerShell & PowerBi Reducing DBAs Context Switching
Targeting Wait Statistics with Extended Events
Indexing For Optimal Performance
Moving from SQL Profiler to xEvents
Database hidden disasters…
Transaction Log Internals and Performance David M Maxwell
You Inherited a Database Now What?
Kris Hokanson That’s bad mmmkay! …Or, how to know when your SQL Server isn’t working as well as it could.
Thank you Sponsors.
Use PowerShell & dbatools to Manage your SQL Server Environment
Jean Joseph DBA\DEVELOPER
Michael Wall Senior DBA, Great Western Malting
Using wait stats to determine why my server is slow
Managing the mystery database
Vendor Software Lessons From Consulting Vendor Software.
Managing the mystery database
Bringing source control to BI world!
The DBA Quit and now you’re it:
Presentation transcript:

Making Your Emergency Toolkit Rich Benner Making Your Emergency Toolkit

Gold Sponsors @SQLSatMcr

Silver Sponsors @SQLSatMcr

Bronze Sponsors @SQLSatMcr

Thank you, Learn and Enjoy If you have any queries, find a Helper (Green shirts) or Organiser (Yellow). Please be aware of your own and other peoples opinions around you. We support an open policy, and would love everyone to get on, but realise that doesn't always happen.  Please thank the Sponsors and visit them, we can not run it without their support. And the helpers, as they make your day happen. Thanks SQL Saturday Manchester Team (Shaun, Paul, Martin & Ian) @SQLSatMcr

Rich Benner SQL Server Performance Specialist at Deltek richbenner Rich Benner SQL Server Performance Specialist at Deltek richbenner.com/toolkit rich@richbenner.com SQL Server Community Slack - @richbenner Twitter @RichBennerSQL

Why Am I Here?

Why Am I Here? You’re the main line of defense against poorly SQL Servers. You don’t have time to waste You may not have a lot of SQL Server knowledge, but it’s your problem now

Let’s Make a Toolkit

Let’s Make a Toolkit A set of scripts that you can use to diagnose problems Keep it up to date Make sure you know how they work

Community Tools Scripts from Blog Posts sp_whoisactive First Responder Kit

Priorities, Priorities The server is melting and you need to fix it NOW Intermittent outage or performance issue “Slower than normal”

Diagnostics Database Settings Current Activity Hardware Software sp_whoisactive sp_blitzfirst Wait Stats Disk Performance

Start With The Basics Script 1 – Environment.sql Check what you’re working with Machine/Instance Name Product Version/Edition/Patch Level Is Clustered or in an Availability Group Server Uptime CPU Memory

Environment.sql Results Anything out of the ordinary?

What’s wrong here?

Active Queries – sp_who2

ACTIVE QUERIES sp_WhoIsActive

Immediate Problems sp_BlitzFirst EXEC sp_BlitzFirst Prioritised output, the higher on your list the more urgent it probably is.

WAIT STATS QUERY Written by Paul S. Randal at SQLSkills.com https://www.sqlskills.com/blogs/paul/capturing-wait-statistics-period-time/ Default is 30 minutes, for the toolkit change this to 30 seconds.

WAIT STAT ANALYSIS https://www.sqlskills.com/help/waits/

DISK PERFORMANCE SSD’s are cheap Spinning Rust is slow Is network speed an issue? Disk performance can cause lots of issues Disk_Speed_Check.sql – Adapted from David Pless Demo?

Time to Demo?

BINGO! Browsing the internet on the SQL Server to bypass content filters “It’s using lots of Memory” Fiddler left running on the server Network Guy: “It’s definitely the database’s fault” (spoiler: it wasn’t) “Why can’t we build this in MS Access?” Stacked SQL Instances Spinning Disks Where’s SSMS? Client running SQL 2000… Percentage File Growth Stats “It’s thrown an error” (error not included) It’s Oracle… “It was running slow so I rebooted it” Playing Games on the SQL Server Mining Bitcoin on the Server Developer leaves transaction open and locks the database “It’s just Slow” Developer Edition in Production Using server to Torrent “Can I get sysadmin to production?” Default MAXDOP/Cost Threshold for Parallelism Hosting personal website on company server Auto Shrink on “It doesn’t need that much memory does it?” “Why do you keep ignoring my emails?” “You’re the DBA Right? Well, I’ve got this MySQL database…”

Thank you richbenner.com/toolkit