Database Administration for the Non-DBA Denny Cherry twitter.com/mrdenny.

Slides:



Advertisements
Similar presentations
Denny Cherry Manager of Information Systems MVP, MCSA, MCDBA, MCTS, MCITP.
Advertisements

Chris Ruel * Image used without permission.
Big Data Working with Terabytes in SQL Server Andrew Novick
Common Mistakes Developers Make By Bryan Oliver SQL Server Mentor at SolidQ.
SQL Server 2005 features for VLDBs. SQL Server 2005 features for VLDBs aka (it’s fixed in the next release)
DataBase Administration Scheduling jobs Backing up and restoring Performing basic defragmentation and index rebuilding Using alerts Archiving.
SQL Server Best Practices Keep Your Database In Top Performance Shape and Maintain Effective Backups September, 2007 Richard Kokoski.
Database Optimization & Maintenance Tim Richard ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity.
Backup, Integrity Check and Index and Statistics Maintenance
CS27510 Commercial Database Applications. Maintenance Maintenance Disaster Recovery Disaster Recovery.
Denny Cherry
Designing Custom Maintenance Plans with TSQL By John Miner.
SQL SERVER DAYS 2011 Optimizing SQL Server Performance in a Virtual Environment Denny Cherry twitter.com/mrdenny.
Denny Cherry twitter.com/mrdenny.
Building Highly Available Systems with SQL Server™ 2005 Vineet Gupta Evangelist – Data and Integration Microsoft Corp.
SQL Server 2008 Implementation and Maintenance Chapter 7: Performing Backups and Restores.
Module 1: Introduction to Microsoft SQL Server 7.0.
Troubleshooting SQL Server Enterprise Geodatabase Performance Issues
Chapter 2: Designing Physical Storage MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design Study Guide (70-443)
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 10 Database Performance Tuning and Query Optimization.
It is one of the techniques to create a stand by server. Introduced in SQL 2000,enhanced in It is a High Availability as well as Disaster recovery.
TEMPDB Capacity Planning. Indexing Advantages – Increases performance – SQL server do not have to search all the rows. – Performance, Concurrency, Required.
Databases Lesson 5.
Architecture Rajesh. Components of Database Engine.
Page 1 SQL Server Myths XV ENCONTRO DA COMUNIDADE SQLPORT Rui Ribeiro MCITP 2011/08/16.
Table Indexing for the.NET Developer Denny Cherry twitter.com/mrdenny.
Module 16: Performing Ongoing Database Maintenance
Copyright 2002, Jeremy Zawodny MySQL Backup & Recovery O’Reilly Open Source Convention Jeremy Zawodny Yahoo! Finance July 24th, 2002.
Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level.
Denny Cherry twitter.com/mrdenny.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
A Brief Documentation.  Provides basic information about connection, server, and client.
Denny Cherry
Denny Cherry twitter.com/mrdenny.
Week 7 : Chapter 7 Agenda SQL 710 Maintenance Plan:
SQL SERVER DAYS 2011 Table Indexing for the.NET Developer Denny Cherry twitter.com/mrdenny.
Technology Education THE PERSONAL COMPUTER (PC) SOFTWARE PART 1.
Denny Cherry
SQL SERVER DAYS 2011 Indexing Internals Denny Cherry twitter.com/mrdenny.
Praveen Srivatsa Director| AstrhaSoft Consulting blogs.asthrasoft.com/praveens |
October 1-2 Ølensvåg. Hardcore SQL Session Code: SQL-401-Hardcore Speaker(s): Vidar Nordnes.
October 15-18, 2013 Charlotte, NC Accelerating Database Performance Using Compression Joseph D’Antoni, Solutions Architect Anexinet.
Digging Out From Corruption Eddie Wuerch, MCM - Principal, Database Performance - Salesforce Marketing Cloud Data protection and loss recovery with SQL.
SQL SERVER MAINTENANCE PLANS Kat
How to kill SQL Server Performance Håkan Winther.
Microsoft SQL is known as RDMS (Relational Database Management System) which is developed by Microsoft and is highly used at corporate and enterprise.
Optimizing SQL Server Performance in a Virtual Environment Denny Cherry twitter.com/mrdenny.
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.
Agenda for Today  DATABASE Definition What is DBMS? Types Of Database Most Popular Primary Database  SQL Definition What is SQL Server? Versions Of SQL.
Memory-Optimized Tables Querying at the speed of light.
ProgressBook Suite Maintenance
You Inherited a Database Now What?
Curacao SQL Saturday June 11, 2016
Finding more space for your tight environment
Designing Database Solutions for SQL Server
The Nitty-Gritty of Database Backups
Introduction to SQL Server Management for the Non-DBA
Optimizing SQL Server Performance in a Virtual Environment
Database Administration for the Non-DBA
SQL Server May Let You Do It, But it Doesn’t Mean You Should
Traveling in time with SQL Server 2017
The Ultimate Maintenance Plan By Ed Roepe Perimeter DBA, LLC
Table Indexing for the .NET Developer
Backup and Restore your SQL Server Database
The Ultimate Maintenance Plan By Edward Roepe Perimeter DBA, LLC
Denny Cherry twitter.com/mrdenny
Backup & Recovery.
Sql Saturday Philadelphia
SQL Server Indexing for the Client Developer
Presentation transcript:

Database Administration for the Non-DBA Denny Cherry twitter.com/mrdenny

About Me  Denny Cherry & Associates Consulting  6 books  Dozens of articles  Microsoft MVP  Microsoft Certified Master  VMware vExpert 2

Agenda Files, File Groups, DisksBackupsRecovery ModelDatabase MaintenanceCompressionCorruptionCompatibility LevelIndexes

Files, File Groups, Disks File Groups are made up of files Files hold the dataDisks Hold Files

Files, File Groups, Disks Each database is made up of at least two files One file is data One file is transaction log

Backups 3 Different Kinds of Backups Full Backups Differential Backups Transaction Log Backups Advanced Backup Options File Group Backups Backups Saved On Another Machine

Full Backups Makes a point in time copy of the database Database is in the state the database was at the end of the backup Should be done daily or weekly

Recovery Models Three Recovery Models Available Simple Bulk- Logged Full Used to control amount of logging

Simple Recovery Model Minimal LoggingNo Point In Time RecoveryDoes Not Disable Logging

Bulk Logged Recovery Model Some commands are bulk logged Most commands are fully logged Point In Time Recovery Supported

Full Recovery Almost nothing is bulk logged Point in time recovery is supported Full Data Protection

Restoring Data Full Restore Differential Restore Transaction Log Restore Page Level Restore File Group Restore

Database Maintenance Databases need TLCIndex RebuildingIndex DefragmentingUpdate Statistics

Database Maintenance Index Rebuild  Can be online or offline depending on version, edition and column data types  Creates new indexes then drops old index  Updates Statistics on index Index Defrag  Always Online  Moves data around pages row by row  Only moves rows that need to be moved

Statistics? How SQL Server figures out how to access dataStatistics are used to create an execution planStatistics are a sampling of the values within a table or indexStatistics contain up to 200 samples of the values within the tableStatistics track the number of values between sampled values

Statistics?

Compression Saves space within: The database Memory Backups Costs CPU speed, but usually worth itData Compression is Page or RowBackup Compression is an on or off

Corruption All databases can become corruptCorruption is usually a hardware problemCorruption should be checked for regularlyDepending on what is corrupt it may be repaired without data lossCorruption is checked for and repaired using DBCC CHECKDBCorruption will happen, how you prepare for it will determine how easily you can survive itSome corruption can’t be repaired and must be restored from a backup

Compatibility Level Compatibility levels tell SQL Server which language syntax to supportDoes not effect the version of the SQL Server the database can be restored toSQL Supports several down level compatibility levels. SQL 2014 supports SQL 2008 and up SQL 2012 supports SQL 2005 and up SQL 2008 R2 and below support SQL 6.5 and up

Indexes Used to speed up queries Sorted based on the columns within the index Causes duplicate data to be stored Trades space for speed Indexes are ½ art and ½ science

Indexes ClusteredNonclusteredFull TextSpatialColumnStoreXMLSemantic Search

Indexes

Indexes aren’t free Every index added slows down INSERT/UPDATE/DELETE operations Only create indexes where the cost of having the index is worth it Unused indexes can be removed from the database

Additional Reading… 

I’ve Got a SQL Database, Now What? Denny Cherry twitter.com/mrdenny