SQL Server Optimisation

Similar documents
Microsoft SQL Server Database Administration

Microsoft SQL Server" 2008 ADMINISTRATION. for ORACLE9 DBAs

SQL Server DBA Course Content

Synergetics-Standard-SQL Server 2012-DBA-7 day Contents

SQL Server 2014 Training. Prepared By: Qasim Nadeem

Microsoft SQL Server

SQL Server DBA Online Training

DESIGNING DATABASE SOLUTIONS FOR MICROSOFT SQL SERVER CERTIFICATION QUESTIONS AND STUDY GUIDE

Maintaining a Microsoft SQL Server 2005 Database Course 2780: Three days; Instructor-Led

Designing Database Solutions for Microsoft SQL Server (465)

Netcast

Course 6231A: Maintaining a Microsoft SQL Server 2008 Database

Course 6231A: Maintaining a Microsoft SQL Server 2008 Database

ADMINISTERING MICROSOFT SQL SERVER CERTIFICATION QUESTIONS AND STUDY GUIDE

Tables. Tables. Physical Organization: SQL Server Partitions

Physical Organization: SQL Server 2005

TempDB how it works? Dubi Lebel Dubi Or Not To Be

Common non-configured options on a Database Server

Maintaining a Microsoft SQL Server 2008 Database (Course 6231A)

Designing Database Solutions for Microsoft SQL Server 2012

Number: Passing Score: 800 Time Limit: 120 min File Version:

MS SQL Server 2012 DBA Course Contents

Microsoft SQL Server Fix Pack 15. Reference IBM

Microsoft. Designing Database Solutions for Microsoft SQL Server 2012

6 Months Training Module in MS SQL SERVER 2012

2072 : Administering a Microsoft SQL Server 2000 Database

CONFIGURING SQL SERVER FOR PERFORMANCE LIKE A MICROSOFT CERTIFIED MASTER

Acronis Backup & Recovery 11 Beta Advanced Editions

B2W Software Resource Requirements & Recommendations

Designing Database Solutions for Microsoft SQL Server 2012

The DBA Survival Guide for In-Memory OLTP. Ned Otter SQL Strategist

Designing Database Solutions for Microsoft SQL Server 2012

Product Guide. McAfee Performance Optimizer 2.2.0

Hardware Intel Core I5 and above 4 GB RAM LAN Connectivity 500 MB HDD (Free Space)

Chapter 4 Data Movement Process

Most SQL Servers run on-premises. This one runs in the Cloud (too).

2. Recovery models ->

SQL Server in Azure. Marek Chmel. Microsoft MVP: Data Platform Microsoft MCSE: Data Management & Analytics Certified Ethical Hacker

Slide 1. Slide 2 Housekeeping. Slide 3 Overview or Agenda

AimBetter Database Monitor - Version

Lab 1. In this first lab class, we will address the following topics:

Exam : Microsoft

High Availability- Disaster Recovery 101

Microsoft Azure Windows Server Microsoft System Center

High Availability- Disaster Recovery 101

HIGH PERFORMANCE SANLESS CLUSTERING THE POWER OF FUSION-IO THE PROTECTION OF SIOS

Symantec NetBackup Blueprints

AlwaysOn Availability Groups: Backups, Restores, and CHECKDB

Microsoft Administering Microsoft SQL Server 2012/2014 Databases. Download Full version :

Technical Notes. EMC NetWorker SharePoint BLOB Backup and Recovery by using NetWorker Module for Microsoft and Metalogix StoragePoint TECHNICAL NOTES

SQL Server 2014 Upgrade

Vendor: Microsoft. Exam Code: Exam Name: PRO:MS SQL Serv 08,Design,Optimize, and Maintain DB Admin Solu. Version: Demo

Backup Exec Subscription Licensing Guide

Data Partitioning. For DB Architects and Mere Mortals. Dmitri Korotkevitch

Protecting Microsoft SQL Server databases using IBM Spectrum Protect Plus. Version 1.0

Refresh a 1TB+ database in under 10 seconds

Microsoft Server 2016 file management

Eternal Story on Temporary Objects

Dell EMC Avamar for SQL Server

Sql Server 2000 Manually Run Maintenance Plan

Dell EMC Avamar for SQL Server

Oracle Database 11g: Administration Workshop II

Exam Questions

Field Testing Buffer Pool Extension and In-Memory OLTP Features in SQL Server 2014

Microsoft SQL Server HA and DR with DVX

Copyright 2012 EMC Corporation. All rights reserved.

White Paper. A System for Archiving, Recovery, and Storage Optimization. Mimosa NearPoint for Microsoft

SAP HANA. HA and DR Guide. Issue 03 Date HUAWEI TECHNOLOGIES CO., LTD.

THE INTELLIGENCE AND AUTOMATION WE BUILD INTO OUR SMARTDBA INTEGRATED SOLUTIONS HELP YOU OPTIMIZE PERFORMANCE, INCREASE PRODUCTIVITY, AND ASSURE THE A

5/24/ MVP SQL Server: Architecture since 2010 MCT since 2001 Consultant and trainer since 1992

[SQL MAINTENANCE PLAN] Create a maintenance plan to do integrity check, back up, shrink and clean old file created by the plan on database.

MS SQL Server DBA Training and Certification Course

Whitepaper: Back Up SAP HANA and SUSE Linux Enterprise Server with SEP sesam. Copyright 2014 SEP

Acronis Backup & Recovery 10 Advanced Editions

Microsoft. Exam Questions Administering Microsoft SQL Server 2012 Databases. Version:Demo

Manually Delete Transaction Log Files Exchange 2007

Database Administration

From Single File Recovery to Full Restore: Choosing the Right Backup and Recovery Solution for Your Cloud Data

Course Outline: Oracle Database 11g: Administration II. Learning Method: Instructor-led Classroom Learning. Duration: 5.

20465: Designing a Data Solution with Microsoft SQL Server

Proper Care and Feeding of your SQL MDB

Citrix Workspace Cloud

SQL Server New innovations. Ivan Kosyakov. Technical Architect, Ph.D., Microsoft Technology Center, New York

Managing Oracle Real Application Clusters. An Oracle White Paper January 2002

Chapter 11. SnapProtect Technology

IBM Spectrum Protect Plus

Functional Testing of SQL Server on Kaminario K2 Storage

Basic knowledge of the Microsoft Windows operating system and its core functionality.

Activant Solutions Inc. SQL Server 2005: Data Storage

Huawei OceanStor ReplicationDirector Software Technical White Paper HUAWEI TECHNOLOGIES CO., LTD. Issue 01. Date

Activant Prophet 21 SQL Server Data Storage. SQL Server Administration suite: course 2 of 4

DO NOT USE Microsoft Designing Database Solutions for Microsoft SQL Server

Microsoft MCSE Exam

Module 15: Managing Transactions and Locks

Projects. Corporate Trainer s Profile. CMM (Capability Maturity Model) level Project Standard:- TECHNOLOGIES

Seven Awesome SQL Server Features

SQL Server 2012 virtually out, Microsoft talks features, licensing

LiteSpeed Fast Compression Quick Start Guide

Successfully migrate existing databases to Azure SQL Database. John Sterrett Principal Consultant

COURSE 20462C: ADMINISTERING MICROSOFT SQL SERVER DATABASES

Transcription:

SQL Server Optimisation Jonathan Ward (Epicor) www.epicor.com @EpicorUK

What we will cover SQL Server Version & differences Features Installation & Configuration Indexes Maintenance Backups SSRS DR 2

Versions & Differences nenterprise n+1standard Why Enterprise? SQL Server edition Enterprise Definition The premium offering, SQL Server Enterprise edition delivers comprehensive high-end datacenter capabilities with blazing-fast performance, unlimited virtualization, and end-toend business intelligence enabling high service levels for mission-critical workloads and end user access to data insights. Standard SQL Server Standard edition delivers basic data management and business intelligence database for departments and small organizations to run their applications and supports common development tools for on-premise and cloud enabling effective database management with minimal IT resources. 3

EOL 2008 SP4 09/07/2019 2008 R2 SP3-09/07/2019 2012 SP3-09/10/2018 2012 SP4 (recently released) - 12/07/2022 2014 SP2-09/07/2024 2016 SP1-14/07/2026 4

What Features do I install 5

Install Configurations Disks Purpose Size IO Requiremements C OS, Pagefile 80GB E SQL Applications 60GB F SQL DB & TempDB mdf files 200GB 150 MB/s @ <= 5ms latency G SQL Transaction Log ldf files 100GB 50 MB/s @ <= 5ms latency I SQL Backup Files 200GB 6

Configure the server Memory Cap Boost SQL Server Priority Ad-Hoc Workloads Parallelism Parameterization (DB Level) SECURITY 7

Indexes Shhhh it s a library. 8

How To Rebuild Using Maintenance Plans Rebuild/Reorganize/Update Statistics Using Other Scripts/Tools Just ASK! 9

Maintenance Plans Check it, clean it, code it Back up Database Task Check Database Integrity Task Execute SQL Server Agent Job Task Execute T-SQL Statement Task History Cleanup Task Maintenance Cleanup Task Notify Operator Task Rebuild Index Task Reorganize Index Task Shrink Database Task Update Statistics Task 10

SQL Backups Logs Differential Full Recovery Models Full Simple Bulk-Logged Plan, Script, Schedule 11

Recovery model Description Work loss exposure Recover to point in time? Simple No log backups. Automatically reclaims log space to keep space requirements small, essentially eliminating the need to manage the transaction log space. For information about database backups under the simple recovery model, see Full Database Backups (SQL Server). Operations that require transaction log backups are not supported by the simple recovery model. The following features cannot be used in simple recovery mode: -Log shipping -Always On or Database mirroring -Media recovery without data loss Changes since the most recent backup are unprotected. In the event of a disaster, those changes must be redone. Can recover only to the end of a backup. For more information, see Complete Database Restores (Simple Recovery Model). For a more in depth explanation of the Simple recovery model, see SQL Server Simple Recovery Model provided by the folks at MSSQLTips! Full Bulk logged -Point-in-time restores Requires log backups. No work is lost due to a lost or damaged data file. Can recover to an arbitrary point in time (for example, prior to application or user error). For information about database backups under the full recovery model, see Full Database Backups (SQL Server) and Complete Database Restores (Full Recovery Model). Requires log backups. An adjunct of the full recovery model that permits highperformance bulk copy operations. Reduces log space usage by using minimal logging for most bulk operations. For information about operations that can be minimally logged, see The Transaction Log (SQL Server). For information about database backups under the bulklogged recovery model, see Full Database Backups (SQL Server) and Complete Database Restores (Full Recovery Model). 12 Normally none. If the tail of the log is damaged, changes since the most recent log backup must be redone. If the log is damaged or bulk-logged operations occurred since the most recent log backup, changes since that last backup must be redone. Otherwise, no work is lost. Can recover to a specific point in time, assuming that your backups are complete up to that point in time. For information about using log backups to restore to the point of failure, see Restore a SQL Server Database to a Point in Time (Full Recovery Model). Note: If you have two or more full-recovery-model databases that must be logically consistent, you may have to implement special procedures to make sure the recoverability of these databases. For more information, see Recovery of Related Databases That Contain Marked Transaction. Can recover to the end of any backup. Point-in-time recovery is not supported.

SSRS Don t forget to maintain the ReportServer database If reporting volume is high, consider offloading to another server 13

DR Mirroring Transaction Log Shipping AlwaysOn 14

What didn t we cover? SQL Server Profiling TraceFlags 1117 - When a file in the filegroup meets the autogrow threshold, all files in the filegroup grow. 1118 - Removes most single page allocations on the server, reducing contention on the SGAM page. When a new object is created, by default, the first eight pages are allocated from different extents (mixed extents). Afterwards, when more pages are needed, those are allocated from that same extent (uniform extent) 1222 - Returns the resources and types of locks that are participating in a deadlock and also the current command affected, in an XML format that does not comply with any XSD schema. 2493 - Allows a table variable to trigger recompile when enough number of rows are changed. 15

16