ESSENTIAL SKILLS FOR SQL SERVER DBAS



Similar documents
PERFORMANCE TUNING IN MICROSOFT SQL SERVER DBMS

DBA 101: Best Practices All DBAs Should Follow

Analyzing & Optimizing T-SQL Query Performance Part1: using SET and DBCC. Kevin Kline Senior Product Architect for SQL Server Quest Software

SQL Server Performance Tuning and Optimization

Microsoft SQL Server 2000 Index Defragmentation Best Practices

Microsoft SQL Server: MS Performance Tuning and Optimization Digital

General DBA Best Practices

$99.95 per user. SQL Server 2008/R2 Database Administration CourseId: 157 Skill level: Run Time: 47+ hours (272 videos)

Database Maintenance Essentials

VirtualCenter Database Maintenance VirtualCenter 2.0.x and Microsoft SQL Server

CHAPTER 8: OPTIMIZATION AND TROUBLESHOOTING

Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server Databases

PRODUCT OVERVIEW SUITE DEALS. Combine our award-winning products for complete performance monitoring and optimization, and cost effective solutions.

ADMINISTERING MICROSOFT SQL SERVER DATABASES

Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server Databases 20462C; 5 days

W I S E. SQL Server 2008/2008 R2 Advanced DBA Performance & WISE LTD.

Dynamics NAV/SQL Server Configuration Recommendations

Course: Administering Microsoft SQL Server Databases Overview

MOC 20462C: Administering Microsoft SQL Server Databases

Course 20462C: Administering Microsoft SQL Server Databases

Oracle DBA Course Contents

Introduction. Part I: Finding Bottlenecks when Something s Wrong. Chapter 1: Performance Tuning 3

20462C: Administering Microsoft SQL Server Databases

20462 Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server Databases

Best Practices Every SQL Server DBA Must Know

Administering Microsoft SQL Server 2014 Databases

Would-be system and database administrators. PREREQUISITES: At least 6 months experience with a Windows operating system.

W I S E. SQL Server 2012 Database Engine Technical Update WISE LTD.

Performance. Optimizing Performance. Microsoft Dynamics CRM 3.0. White Paper. Date: January 10,

WW TSS-02\03 MS SQL Server Extended Performance & Tuning

PERFORMANCE TUNING FOR PEOPLESOFT APPLICATIONS

Indexing for Performance Index Defragmentation Best Practices

Infor LN Performance, Tracing, and Tuning Guide for SQL Server

Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server Databases

Administering Microsoft SQL Server Databases

Solving Performance Problems In SQL Server by Michal Tinthofer

Microsoft Administering Microsoft SQL Server Databases

Query Performance Tuning: Start to Finish. Grant Fritchey

Guerrilla Warfare? Guerrilla Tactics - Performance Testing MS SQL Server Applications

Microsoft SQL Server Best Practices with Data Domain Deduplication Storage

SQL Server 2012 Optimization, Performance Tuning and Troubleshooting

Administering Microsoft SQL Server Databases

Microsoft SQL Server performance tuning for Microsoft Dynamics NAV

MS SQL Performance (Tuning) Best Practices:

DB2 for Linux, UNIX, and Windows Performance Tuning and Monitoring Workshop

SQL Server Virtualization 101. David Klee, Group Principal and Practice Lead. SQL PASS Virtualization VC,

6231B: Maintaining a Microsoft SQL Server 2008 R2 Database

S A M P L E C H A P T E R

SQL Server 2008 Designing, Optimizing, and Maintaining a Database Session 1

IBM DB2: LUW Performance Tuning and Monitoring for Single and Multiple Partition DBs

DMS Performance Tuning Guide for SQL Server

ImageNow for Microsoft SQL Server

About Me: Brent Ozar. Perfmon and Profiler 101

Course Syllabus. Microsoft Dynamics GP Installation & Configuration. Key Data. Introduction. Audience. At Course Completion

Database Administrator Certificate Capstone Project Evaluation Checklist

SQL Server 2014 Performance Tuning and Optimization 55144; 5 Days; Instructor-led

This presentation is an introduction to the SQL Server Profiler tool.

Understanding Query Processing and Query Plans in SQL Server. Craig Freedman Software Design Engineer Microsoft SQL Server

MOC Administering Microsoft SQL Server 2014 Databases

Squeezing The Most Performance from your VMware-based SQL Server

Scaling out a SharePoint Farm and Configuring Network Load Balancing on the Web Servers. Steve Smith Combined Knowledge MVP SharePoint Server

Backup and Recovery for Microsoft SQL Server Using EMC Data Domain Deduplication Storage Systems

Administering Microsoft SQL Server Databases

Course 20462: Administering Microsoft SQL Server Databases

SQL Server. DMVs in Action. Better Queries with. Dynamic Management Views MANNING IANW. STIRK. Shelter Island

WHITE PAPER Keeping Your SQL Server Databases Defragmented with Diskeeper

Performance Tuning and Optimizing SQL Databases 2016

Performance Monitoring with Dynamic Management Views

OTM Performance OTM Users Conference Jim Mooney Vice President, Product Development August 11, 2015

DATABASE ADMINISTRATION (DBA) SERVICES

Enterprise Manager Performance Tips

Oracle Database 12c: Performance Management and Tuning NEW

SQL Server Performance Tuning for DBAs

PGCon PostgreSQL Performance Pitfalls

Oracle Database 11g: SQL Tuning Workshop Release 2

MS-10775: Administering Microsoft SQL Server 2012 Databases. Course Objectives. Required Exam(s) Price. Duration. Methods of Delivery.

Upon completion of the program, students are given a full support to take and pass Microsoft certification examinations.

Oracle Database 11 g Performance Tuning. Recipes. Sam R. Alapati Darl Kuhn Bill Padfield. Apress*

The 5-minute SQL Server Health Check

3 Setting up Databases on a Microsoft SQL 7.0 Server

WhatsUp Gold v11 Features Overview

Kalen Delaney

Administering Microsoft SQL Server 2012 Databases

IBM Tivoli Monitoring V6.2.3, how to debug issues with Windows performance objects issues - overview and tools.

How To Improve Performance In A Database

Extending Your Use of Extended Events

SQLintersection SQL123

Open Mic on IBM Notes Traveler Best Practices. Date: 11 July, 2013

10775 Administering Microsoft SQL Server Databases

SQL Server Query Tuning

ExecuTrain Course Outline MOC 6231B: Maintaining a Microsoft SQL Server 2008 R2 Database

Before attending this course, participants should have:

Mind Q Systems Private Limited

Database Server Migration Guide

Transcription:

elearning Event ESSENTIAL SKILLS FOR SQL SERVER DBAS Session 3

Session 3 Session 1 DBAs: What, Why and How SQL Server Engine and Security Session 2 File / Database Management Disaster Recovery Session 3 SQL Server Performance Basics Maintenance

SQL Server as an Application How SQL Server Leverages RAM The Plan Cache: Execution Plans. The Buffer Pool: Database data/pages. Workspace Memory: Buckets for query output. Other Caches: Object/User/Data. Connection Details, etc. SQL Server is a Windows Application SQL Server is under same restrictions as other Apps. Pre-Emptive Multi-Tasking Quantum / Time Slice SQL Server HAS to YIELD

SQL Server as an Application How SQL Server Leverages RAM The Plan Cache: Execution Plans. The Buffer Pool: Database data/pages. Workspace Memory: Buckets for SQL query Server output. has to wait its Other Caches: Object/User/Data. turn and play nice with Connection Details, etc. system resources just like all other processes and SQL Server is under same restrictions as applications. other Apps. Pre-Emptive Multi-Tasking Quantum / Time Slice SQL Server HAS to YIELD SQL Server is a Windows Application

Walkthrough: A Simple Query Statistics Size, Shape, Distribution Help SQL Server anticipate

Walkthrough: A Simple Query Behind the Scenes: Network Transport / TDS Authentication Authorization Parsing Get or Generate an Execution Plan Statistics Size, Shape, Distribution Help SQL Server anticipate

Performance is Complex SQL Server Has its Own, Internal, Scheduler Manages Concurrent Operations within SQL Server. Translates Quantums / Slices from OS into tasks and operations internally. Keeps CAREFUL tabs and records on all of the operations currently in processes. Also logs information about what SQL Server is waiting on. Insanely Complex

Making Sense of Performance Overly-Simplified View of Performance: Problems Manifest when Data > RAM Small DBs on Servers with Large RAM are rarely a problem. Larger Databases and Tip of the Iceberg

Making Sense of Performance Overly-Simplified View of Performance: Problems Manifest when Data > RAM Small DBs on Servers with Large RAM are rarely a problem. Larger Databases and Tip of the Iceberg

Introduction to Indexes

Introduction to Indexes

Introduction to Indexes

Indexes are Narrower

Indexes are Narrower

Indexes and Balance Trees 1-1,750 1,751 3,500 1-875 876 1,750 1,751 2,626 2,267 3,500 1-875 876 1,750 1,751 2,626 2,267 3,500

Clustered and Covering Indexes Clustered Indexes Only One Per Table. Defines LOGICAL order of data in your tables. Optimized for Ranged Queries. Covering Indexes Cover everything needed to satisfy queried portion of a single table. Typically Wide by virtue of covering multiple columns. Almost act as specialized copies of your tables for given/specific queries.

SQL Server Performance: Maintenance

Statistics Maintenance Statistics What Creates them? You can explicitly (CREATE STATISTICS command). Or, SQL Server can create them automatically. Maintenance UPDATE STATISTICS command OR: EXEC sp_updatestats Run it manually in each database (including system dbs) OR: EXEC sp_msforeachdb @command1 = 'EXEC?..sp_updatestats' Updating Stats DOES impose some perf overhead.

Indexes - Fragmentation The new phone book is here! The new phone book is here! Navin R Johnson (The Jerk)

Index Defragmentation Two Ways to Defragment: Reorganize (Defragment) Indexes: Typically used when indexes are < 30% Fragmented. Online Operation queries won t time-out. Rebuild Indexes: Typically done when fragmentation > 30% OFFLINE Operation: - Queries CAN/WILL time-out Enterprise Edition: Offers Online Index Rebuilds Some Limitations / Tradeoffs

Indexes Rebuilding and Reorganizing Detecting Fragmentation DBCC SHOWCONTIG or dm_db_index_physical_stats Addressing Fragmentation REORDER ALTER INDEX <index_name>... WITH REORDER (2005+) DBCC INDEXDEFRAG (2000/Deprecated) REBUILD ALTER INDEX <index_name>... WITH REBUILD (2005+) DBCC DBREINDEX (2000/Deprecated)

Index Maintenance: How to Cheat Michelle Ufford s Index Defrag Script (v4.0) Free Awesome

Troubleshooting: Tools/Techniques

Available Performance Tuning Tools Performance Monitor Low Level Windows/OS (and Application) Instrumentation SQL Server Profiler SQL Server-level Tracing/Instrumentation DMVs and WAIT_STATS Query What SQL Server is doing, or has waited on. Detailed information on current execution details, connections, cache/memory management, and handles to execution plans. SQL Server Execution Plans HIGHLY Detailed Representations of Execution Plans

Performance Monitor (Perfmon)

SQL Server Profiler

Watcher Effect Logging Performance Data: Adds Performance Overhead when using Profiler/Perfmon Recommendations: Beware Feedback Loops. Always save Profiler traces to.trc files. Watcher Effect Can add up to 5% over head. Usually negligible But WATCH for it on heavily used Production Servers

WAIT STATS and DMVs Books Online Documents GOBS of different Execution Based DMVs

SQL Server Execution Plans

SQL Server Execution Plans

SQL Server Execution Plans

Conclusion Additional Resources / Links: http://updates.sqlservervideos.com