You Inherited a Database Now What?

Slides:



Advertisements
Similar presentations
Refeng Wu CQ5 WCM System Administrator
Advertisements

Burt King We will cover: Essentials --No command line needed here (mott) What is SQL Server How does it come to life What are the.
2 Copyright © 2005, Oracle. All rights reserved. Installing the Oracle Database Software.
Maintaining and Automating SQL Server
Common Mistakes Developers Make By Bryan Oliver SQL Server Mentor at SolidQ.
Brad M McGehee Microsoft SQL Server MVP Director of DBA Education Red Gate Software
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.
SQL Server 2005 Implementation and Maintenance Chapter 10: Maintaining and Automating SQL Server.
Database Optimization & Maintenance Tim Richard ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity.
SharePoint and SQL Server integration Demo: SQL Server Optimizing Configurations SQL Server 2014 for SharePoint 2013 Avoiding ginormous transaction.
Backup, Integrity Check and Index and Statistics Maintenance
CS27510 Commercial Database Applications. Maintenance Maintenance Disaster Recovery Disaster Recovery.
Designing Custom Maintenance Plans with TSQL By John Miner.
DBA Quick Start What do you do when you’ve fallen into a job as a DBA? Take a deep breath, Find out what you’ve got, And dive right in!
1 Chapter Overview Creating a User Database Setting Database Options Managing User Database Size Placing Database Files on Multiple Disks.
TEMPDB Capacity Planning. Indexing Advantages – Increases performance – SQL server do not have to search all the rows. – Performance, Concurrency, Required.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.
Module 16: Performing Ongoing Database Maintenance
Week 7 : Chapter 7 Agenda SQL 710 Maintenance Plan:
1 Chapter Overview Defining Operators Creating Jobs Configuring Alerts Creating a Database Maintenance Plan Creating Multiserver Jobs.
MISSION CRITICAL COMPUTING Siebel Database Considerations.
Maintenance Practices. Goal  Automate the necessary DBA chores to put organizations on the path of having healthier, consistent and more trustworthy.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
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
Best Practices for a Healthy SQL Server Presenter: Jeff Pfershy.
Linkedin: dennisegraham Dennis E Graham Reporting For SQL Health.
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.
DBA Quick Start What do you do when you’ve fallen into a job as a DBA? Take a deep breath, Find out what you’ve got, And dive right in!
New Instance… Now What? Presented by: James Donahoe Senior Solutions Engineer – TeleTracking Technologies MCSA: SQL Server 2012.
WHEN DATABASE CORRUPTION STRIKES Presented by Steve Stedman Founder/Owner of Stedman Solution, LLC.
Blog.eardley.org.uk SharePoint Databases What you need to know Alan Eardley SQL Saturday Exeter 25 April 2015.
SQL Server Magic Buttons! What are Trace Flags and why should I care? Steinar Andersen, SQL Service Nordic AB Thanks to Thomas Kejser for peer-reviewing.
SQL Server DBA Online TrainingSQL Server DBA Online Training.
ProgressBook Suite Maintenance
Smarter Technology for Better Business
Automated Restore Script Output for Ola Hallengren’s Maintenance Solution 1) Start SQL Services on Local 2) Connect to Azure AlwaysOn 3) Delete all maintenance.
Tips for SQL Server Performance and Resiliency
SQL Replication for RCSQL 4.5
Performance Management
SQL Server Performance Tuning
Database Corruption Advanced Recovery Techniques|
Designing Database Solutions for SQL Server
Building Effective Backups
Clonedb: The quick and easy cloning solution you never knew you had.
Introduction to SQL Server Management for the Non-DBA
Database Administration for the Non-DBA
SQL Server May Let You Do It, But it Doesn’t Mean You Should
Tips for SQL Server Performance and Resiliency
Tips for SQL Server Performance and Resiliency
Dynamics AX Performance
Hitting the SQL Server “Go Faster” Button
The Ultimate Maintenance Plan By Ed Roepe Perimeter DBA, LLC
5 WAYS TO BYPASS *OR ENSURE* SQL SERVER SECURITY MATT MARTIN
Re-Indexing - The quest of ultimate automation
Migrating your SQL Server Instance
Example of a page header
Peter Shore SQL Saturday Cleveland 2016
Turbo-Charged Transaction Logs
Backup to Basics Tom Fox
The Ultimate Maintenance Plan By Edward Roepe Perimeter DBA, LLC
It’s TEMPDB Why Should You Care?
You Inherited a Database Now What?
February 11-13, 2019 Raleigh, NC.
Disaster Recovery Done Dirt Cheap Founder Curnutt Data Solutions
Ch 10. Maintaining and Automating SQL Server
The DBA Quit and now you’re it:
Presentation transcript:

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 “Columbus GA SQL Users Group”

Do you have recent backups? Is the current backup strategy adequate for the SLA of the system How often is it being backed up, can you do a point in time recovery? Do you have the right recovery model? Is there a plan in place to validate the backups When is the last time a test recovery has been performed?

Do you have corruption in your newly acquired databases? Consistency Checks Do you have corruption in your newly acquired databases? Is there a scheduled task/job to run DBCC CHECKDB It is debatable how often this should be ran. Some say daily and others say weekly, as with everything SQL Server related “IT DEPENDS”, in this case, how much data loss can you handle? DBCC CHECKDB DBCC CHECKALLOC DBCC CHECKFILEGROUP

Statistics Are your statistics up to date? sp_updatestats Is there a job to manually update stats? Is “Auto Update Statistics” turned on? Auto Update Statistics typically update after 20% of the rows change Impact of Statistics to the Query Optimizer The Query Optimizer uses statistics to build the execution plan. Without current statistics you are pretty much guaranteed to NOT have the “good enough” execution plan.

Brand Transformation Presentation Auto Grow / Auto Shrink How do you control your database size? Do you allow your databases to auto grow in size? I DO. Over the years I have seen most defaults to auto grow by 1MB or 10%. Both are bad in my opinion. Try setting auto grow by a fixed MB depending on the system. Make sure you have adequate free space in the file to handle traditional growth. When a database file or TLOG is grows, transactions stop until the growth completes. Do you allow your database to auto shrink? I DO NOT Shrinking a database is a very bad practice. Are there times when shrinking is necessary? Sure Shrinking a database can lead to fragmentation.

Brand Transformation Presentation Index Rebuilds Do you have Fragmented Indexes? What causes fragmentation Data modifications (Insert, Delete, Updates). Why should you care about fragmented indexes A whitepaper from Microsoft stated fragmentation can slow down systems from 13% to 460% based on the size of the environment and fragmentation level. How do you fix this You can rebuild, reorganize, or drop and recreate your indexes. Can schedule rebuilds using a maintenance plan (ok for small db’s). You can use a custom script and run it in a SQL Job. You can use third party tools. Check out www.sqlfool.com or ola.hallengren.com. Duplicate Indexes Indexes that are exact duplicates are bad and should be removed. Lots of scripts and apps to detect duplicate indexes out there

Brand Transformation Presentation Ownerships Who owns what? Who is the DBO of your databases When these databases were restored or created, did the previous DBA let it default to their user id? Check out sp_helpdb Who owns your jobs Did the previous DBA create the jobs and let it default to their user id? Who else touches your databases Is there any documentation on what other processes use your database? Any SQL Jobs/SSIS/DTS? Who owns those jobs? database can lead to fragmentation.

Security Who has access to your databases Who has Sys Admins rights Who has access to your database and why? Who is DBO and why? Who has Sys Admins rights Regardless if you are responsible for the database only or the entire instance who has SA rights and why? Check out master.sys.syslogins Who has Security Admin rights Regardless if you are responsible for the database only or the entire instance who has Security Admin rights and why? These users can add themselves to the SA group and back out.

Near Future You have checked the quick stuff, now what? Long Running Queries Start monitoring for long running queries. sys.dm_exec_query_stats Wait Stats Start monitoring and recording wait stats. sys.dm_os_wait_stats Disk I/0 Check for file placement for your data files, tlog, tempdb, backups. Are your disk configured properly? sys.dm_io_virtual_file_stats Compatibility Level Were these databases upgraded? Was the compatibility level updated? - sp_helpdb Recovery Plan You have backups, you can restore the backup, but what is your “Recovery Plan”? What would you do in the event of a failure?

Instance Related Items Regardless if you own the server or just a database check? TempDB Contention Is TempDB setup to best practice? Sized right, multiple files on high speed disk, simple mode, etc? MSDB History Are you purging backup history? Security Updates Are security updates being applied to the server? Is SQL Patched? Startup Parameters Check and document any startup parameters. Alerts and Monitoring Review any alerts configured on the server, create any that you need. Does your environment have any monitoring tools, are they setup correctly for this server?

How To Find Me Blog Twitter LinkedIn Facebook Email http://www.timradney.com Twitter http://www.twitter.com/tradney LinkedIn http://www.linkedin.com/in/tradney Facebook http://www.facebook.com/tradney Email Tim@timradney.com