How to be a Great Production DBA

Similar documents
Advanced SQL Programming and Optimization. Everything you wanted to know about Stored Procedures!

High Availability- Disaster Recovery 101

High Availability- Disaster Recovery 101

INFRASTRUCTURE BEST PRACTICES FOR PERFORMANCE

<Insert Picture Here> Consolidate Oracle Applications on Oracle Exadata

Chapter 2 CommVault Data Management Concepts

Proper Care and Feeding of your SQL MDB

Network Performance, Security and Reliability Assessment

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

Patient A SQL Critical Care Part 1: Health Triage Findings

Designing Data Protection Strategies for Oracle Databases

Designing Data Protection Strategies for Oracle Databases

Best Practices for Deployment of SQL Compliance Manager

FIVE BEST PRACTICES FOR ENSURING A SUCCESSFUL SQL SERVER MIGRATION

Hitachi Adaptable Modular Storage and Hitachi Workgroup Modular Storage

Deploy. A step-by-step guide to successfully deploying your new app with the FileMaker Platform

Understanding Virtual System Data Protection

Deploy. Your step-by-step guide to successfully deploy an app with FileMaker Platform

Verron Martina vspecialist. Copyright 2012 EMC Corporation. All rights reserved.

Basics of Database Corruption Repair

SQL Server Myths and Misconceptions

Hitachi Adaptable Modular Storage and Workgroup Modular Storage

Backup & Recovery on AWS

INFORMATION SECURITY- DISASTER RECOVERY

Virtual protection gets real


Product Guide. McAfee Performance Optimizer 2.2.0

Data Storage, Recovery and Backup Checklists for Public Health Laboratories

Microsoft SQL Server" 2008 ADMINISTRATION. for ORACLE9 DBAs

SQL Server 2008 at the Speed of Light

Upgrade Readiness Assessment (9 10)

Construction and Real Estate. Improve system performance and data security with SQL Server

HIPAA Compliance and OBS Online Backup

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

Identifying Workloads for the Cloud

Minimum Requirements for Cencon 4 with Microsoft R SQL 2008 R2 Enterprise

ScaleArc for SQL Server

New Zealand Government IBM Infrastructure as a Service

Security+ Guide to Network Security Fundamentals, Third Edition. Chapter 13 Business Continuity

Data Sheet: High Availability Veritas Cluster Server from Symantec Reduce Application Downtime

VERITAS Storage Foundation 4.0 TM for Databases

Optim. Optim Solutions for Data Governance. R. Kudžma Information management technical sales

Aurora, RDS, or On-Prem, Which is right for you

Briggs Freeman Sotheby s International Realty

Installing SQL Server Developer Last updated 8/28/2010

Why Use Cisco Network Storage Systems for Your Business

Upgrade Strategies for Oracle E-Business: Leveraging Archiving Best Practices

ServeRAID M5000 Series Performance Accelerator Key for System x Product Guide

Exadata Implementation Strategy

Introduction to Business continuity Planning

Using IBM Tivoli Storage Manager and IBM BRMS to create a comprehensive storage management strategy for your iseries environment

Common Preventive Maintenance Techniques for Operating Systems

System Administration of PTC Windchill 11.0

CA ARCserve Backup. Benefits. Overview. The CA Advantage

Chapter 11. SnapProtect Technology

Data Virtualization Implementation Methodology and Best Practices

RED HAT ENTERPRISE LINUX. STANDARDIZE & SAVE.

AUTOTASK ENDPOINT BACKUP (AEB) SECURITY ARCHITECTURE GUIDE

Addressing Data Management and IT Infrastructure Challenges in a SharePoint Environment. By Michael Noel

Implementation Quick Guide. EZManage SQL Pro

Chapter 3 `How a Storage Policy Works

Reporting On Backups And Db Schema Project Server 2010

FDIC InTREx What Documentation Are You Expected to Have?

ECONOMICAL, STORAGE PURPOSE-BUILT FOR THE EMERGING DATA CENTERS. By George Crump

NAMI Affiliate Profile Center Contact Manual

Cyber security tips and self-assessment for business

TRANSFORM YOUR APPLICATIONS

Veritas Storage Foundation for Windows by Symantec

Oracle Database and Application Solutions

Performing an ObserveIT Upgrade Using the Interactive Installer

New Zealand Government IbM Infrastructure as a service

Taming the Beast: Optimizing Oracle EBS for Radical Efficiency

<Insert Picture Here> Enterprise Data Management using Grid Technology

Five Keys to Better Backup: Customer Panel Shares Lessons Learned

TSM Paper Replicating TSM

Veeam Endpoint Backup

Chapter 4 Data Movement Process

Pre-installation Guide. Collect v1.0 Technical Installation Guide

Checklists for SAP Administration Practical Guide

product overview CRASH

Symantec System Recovery 2013 Management Solution FAQ

CLOUDALLY EBOOK. Best Practices for Business Continuity

IT People has been offering end-to-end IT outsourcing & staffing solutions to companies since two decades.

Executive Summary SOLE SOURCE JUSTIFICATION. Microsoft Integration

Nortel Quality Monitoring. Maintenance Guide NN

The Role of Database Aware Flash Technologies in Accelerating Mission- Critical Databases

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

Edge for All Business

<Insert Picture Here> MySQL Web Reference Architectures Building Massively Scalable Web Infrastructure

Refresh a 1TB+ database in under 10 seconds

DB2 for Linux, UNIX, Windows - Adv. Recovery and High Availability

Introduction. Read on and learn some facts about backup and recovery that could protect your small business.

FUJITSU Storage ETERNUS AF series and ETERNUS DX S4/S3 series Non-Stop Storage Reference Architecture Configuration Guide

Data Protection for Cisco HyperFlex with Veeam Availability Suite. Solution Overview Cisco Public

Performance Tuning In Sql Server 2008 R2 Interview Questions And Answers >>>CLICK HERE<<<

SQL Server 2014 Upgrade

Maintenance Guide.

IPMA State of Washington. Disaster Recovery in. State and Local. Governments

Assessing performance in HP LeftHand SANs

BusinessObjects XI Release 2

Transcription:

How to be a Great Production DBA Because Performance Matters Presented by: Jeff Garbus CEO Soaring Eagle Consulting, Inc.

About Soaring Eagle Since 1997, Soaring Eagle Consulting has been helping enterprise clients improve their Application Performance Management, (APM) at the database tier, arguably the most volatile and critical component of distributed application architecture. Our clients range in size from fledgling startups through Fortune 100 companies and leading financial institutions. Soaring Eagle has been a leader in software development, architecture, performance and tuning databases, while promoting mentoring and training all over the world for over a decade. Many of our employees, and partners have written books, speak at seminars about leading edge technologies. We have expertise in all business tiers, financial; health, manufacturing, government agencies and many ecommerce businesses. Consulting Performance & Tuning Application Performance Management Emergency Triage Performance audits Staff Augmentation Project management Database architecture Scalability assessment and planning Training Onsite/Web based Microsoft Sybase Oracle APM Managed Services Remote Database Management Performance management Emergency db Service Database Help Desk Problem notification Problem resolution Software Application Performance Management Database performance accelerators Database performance management Application Development 9 db

Production DBA vs. Development DBA There are 10 kinds of people in the world; those who understand binary, and those who don t. There really are 2 basic types of DBA: Production DBAs and Development DBAs. This presentation focuses on Production

Production DBA Failure to perform basic maintenance and monitoring can hurt in a variety of ways: Performance issues snowballing Database Server corruption, system crash, or other When your production database server goes down, your business stops or a hundred other scenarios

Preventative Maintenance When servers and Database Servers are not properly maintained: Performance degrades Consistency is at risk Cleanup of ancillary process does not occur Lack of preventive maintenance is probably the most common omission to sting the new DBA Accurate statistics are vital for proper execution plan formation Failure to keep statistics up to date are frequent causes of later consternation Check that storage is being used efficiently

Preventive Maintenance At a minimum, PM on a SQL Server comprises: Backups (full and incremental) Index maintenance (reorg/rebuilds, statistics) Dbcc msdb cleanup Older backup file cleanup AVOID database shrink step

Keeping Statistics up to Date SQL Server has a cost-based optimizer identifies the distribution of the data crucial for determining join orders, index selection, or lack of same to perform this critical task as often as necessary High-volume environments Statistics Auto-update vs. manual update

Keeping Statistics up to Date Tips Large tables? Update the system based on a sample a 10% sampling can be as consistent as 100% sampling Update statistics as often as you can

Reorganize Data Rebuild and/or reorganize your indexes as part of your basic maintenance

Validate Database Consistency Database Consistency Checker (dbcc) Stops small errors from escalating Don t age out your backups without it

Recording Run-Time Data sp_configure This stored procedure will list all system configuration variables archive a good copy of the results from a run of sp_configure This enables you to rebuild a new server from scratch in case of an emergency sp_configure show advanced, 1

Application Performance Know how to identify what application components are running slowly? Common mistake = throw hardware at the problem Usually only masks the problem while it snowballs, and that for a short period of time Get a good tool (ask us for recommendations)

Disaster Recovery Do you have a disaster recovery plan? Always ask how each plan could go wrong Include the location of physical Database Server dumps and any configuration data that would be used to re-construct the server Enlist the aid of a practical joker Test written plans extensively and often Use least experienced DBA to test it

Database Backups Regularly backup each Database It s OK to exclude tempdb Get a copy of the backups in a secure offsite location Keep track and maintain a record of the backups

Transaction Log Backups SQL Server transaction log provides an incremental backup Make sure you back this up and get it off site For incremental and redundant backups

Log Management Transaction Logs must be monitored to prevent them from filling up A full transaction log stops all modification to the database server Only way to prune is to dump with an incremental backup or change the recovery type Auto-Grow is not necessarily your friend Beware of VLF issues

Script Maintenance It may become necessary to attempt a complete rebuild of an SQL Server Have scripts ready that can perform the installation, configuration, and population of the Database Servers Especially things like encryption keys and certificates, and passwords related to these objects Keep up-to-date scripts Keep the scripts on a different machine

Verifying Backups "Any administrator can perform a backup. A useful administrator can perform a restore." Get a separate server set aside for periodic testing Provides an excellent rehearsal for a real disaster Great exercise for JR DBAs & operations staff (if they are separate) to validate run books at the same time as the backups.

Device Management There are a variety of DBMS resources that require frequent I/O (tempdb, logs, heavily hit tables) Predictive Analysis Measure and monitor things like Database Server growth or you won t have a way to plan

Disk Spinning disk has a finite life Redundancy is not important, it is critical Avoid RAID 5 in an OLTP situation, regardless of what the hardware sales guy says RAID 10 works well The world is moving away from spinning disk, currently towards flash arrays (as opposed to SSDs) (we can talk about this offline)

Physical Architecture Decisions need to be based upon facts, knowledge of your business requirements, and experience Application architecture DBA s = good resource when you start to design your application flow

Software Maintenance Roll out the new patches as soon as you know somebody who hasn t been burnt by the patch. The goal is to not wait too long

Business Continuity Over 60% of businesses fail after catastrophic data loss Have a long term plan Hardware Performance When ordering your server hardware: know what the DBMS performance has been to know which performance spikes are aberrations and what is normal know how to maximize the throughput throughout your bottlenecks

Business continuity Create & maintain a run book Define maintenance plans Backup strategies and file locations DR plan On-call lists Authorization lists CRITICAL to being able to take a vacation!

Developer training An oft-neglected but badly-needed area of DBA work is mentoring Developers have high aptitude for logical coding, often do not have training in Database Server performance often leads to applications passing user test, but with significant performance issues at rollout

Personality Attributes of a Great DBA Always Learning There is always more to learn Meticulous Constructive Paranoia anticipation Keep asking, What can go wrong? Frequently takes and validate backups Automation Communicative Communicate to management early and often Get involved online Lunch-and-Learns Continual Improvement How can I do this better?

Summary DBA activities requires dedicated support Part-time DBA s might not have enough time or training Make sure you have adequate expertise at hand!

Jeff Garbus jeff@soaringeagle.guru 813.641.3434 mssqlperformance.blogspot.com/ Upcoming Webinars Check our web site, and enter our contest Check out Soaring Eagle s Youtube channel to see previous webinars http://www.youtube.com/user/soaringeagledba 28-60 Soaring Eagle Consulting 8/19/2013