Managing the mystery database

Slides:



Advertisements
Similar presentations
ManageEngine ® SQLDBManager Plus - Product Overview.
Advertisements

Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Business Rules Execution via Managed Stored Procedures A Data-centric Approach Steve Cavanagh, Software Architect, Ramsey County Balaji Thiagarajan, Independent.
Today’s Agenda Chapter 12 Admin Tasks Chapter 13 Automating Admin Tasks.
How a little code can help with support.. Chris Barba – Developer at Cimarex Energy Blog:
© 2011 PLANET TECHNOLOGIES, INC. Extending User Profiles with Line of Business Data Patrick Curran, MCT FEBRUARY 24, 2013.
DNN Performance & Scalability Planning, Evaluating & Improving : Part 1.
Copyright ®xSpring Pte Ltd, All rights reserved Versions DateVersionDescriptionAuthor May First version. Modified from Enterprise edition.NBL.
Intro to SQL Server Performance Tuning By Robert Biddle.
Ideas to Improve SharePoint Usage 4. What are these 4 Ideas? 1. 7 Steps to check SharePoint Health 2. Avoid common Deployment Mistakes 3. Analyze SharePoint.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
© 2008 Quest Software, Inc. ALL RIGHTS RESERVED. Perfmon and Profiler 101.
A Brief Documentation.  Provides basic information about connection, server, and client.
ESRI User Conference 2004 ArcSDE. Some Nuggets Setup Performance Distribution Geodatabase History.
1 Chapter Overview Monitoring Access to Shared Folders Creating and Sharing Local and Remote Folders Monitoring Network Users Using Offline Folders and.
Linkedin: dennisegraham Dennis E Graham Reporting For SQL Health.
Advanced Analysis Services Security Chris Webb Crossjoin Consulting Limited.
SQL Advanced Monitoring Using DMV, Extended Events and Service Broker Javier Villegas – DBA | MCP | MCTS.
Configuring SQL Server for a successful SharePoint Server Deployment Haaron Gonzalez Solution Architect & Consultant Microsoft MVP SharePoint Server
Improve query performance with the new SQL Server 2016 query store!! Michelle Gutzait Principal Consultant at
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.
New Instance… Now What? Presented by: James Donahoe Senior Solutions Engineer – TeleTracking Technologies MCSA: SQL Server 2012.
FUN WITH AVAILABILITY GROUPS Christopher Wolff SQL Server Database Engineer, Xero.
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
WHEN DATABASE CORRUPTION STRIKES Presented by Steve Stedman Founder/Owner of Stedman Solution, LLC.
C:\Users\> whoami Known on Twitter t An affair with SQL Server for nearly a decade Was part of SQL Escalation Services and Premier Field.
Blog.eardley.org.uk SharePoint Databases What you need to know Alan Eardley SQL Saturday Exeter 25 April 2015.
Session Name Pelin ATICI SQL Premier Field Engineer.
Building a Home Grown Auditing Infrastructure for SQL Server
Understanding the New PTC System Monitor (PSM/Dynatrace) Application’s Capabilities and Advanced Usage Stephen Vaillancourt PTC Technical Support –Technical.
Benchmarking like a PRO
You Inherited a Database Now What?
Curacao SQL Saturday June 11, 2016
Centralized Management for Barracuda Networks products
Tips for SQL Server Performance and Resiliency
Upgrading from r4.1.4 to r7: Making a Smooth Transition
Troubleshooting SQL Server high CPU usage
SQL Server Data Collector From Every Angle
Get to know SQL Manager SQL Server administration done right 
Lead SQL BankofAmerica Blog: SQLHarry.com
Benchmarking the forgotten Role of Performance Tuning
Policy Based Management: Introduction & implementation
SQL Server Monitoring Overview
Contained DB? Did it do something wrong?
Where to Start, What You Need
Simplifying XEvents Management with dbatools
Upgrading to Microsoft SQL Server 2014
Download Exam - Valid Question Answers - Dumps4download.us
Tips for SQL Server Performance and Resiliency
Tips for SQL Server Performance and Resiliency
Dynamics AX Performance
The Ins and Outs of Indexes
Making PowerShell Useful
Re-Indexing - The quest of ultimate automation
What’s new in SQL Server 2016 Availability Groups
Migrating your SQL Server Instance
Example of a page header
Selling IIoT Solutions to Systems Integrators
SQL Server Performance Tuning Nowadays
Making PowerShell Useful
You Inherited a Database Now What?
Summit Nashville /3/2019 1:48 AM
Insight into the SQL Server Buffer Cache
Sql Saturday Philadelphia
Using wait stats to determine why my server is slow
Exploring the latest T-SQL enhancements
Dustin Dorsey 10 reasons you are paying too much (or too little) on your SQL licenses.
Exploring the latest T-SQL enhancements
Managing the mystery database
The DBA Quit and now you’re it:
Presentation transcript:

Managing the mystery database Dustin Dorsey Managing the mystery database

Who am I? Managing Database Engineer for Lifepoint Health (Fortune 500 company) Email - Dorsey.Dustin@att.net LinkedIn – linkedin.com/in/dustindorsey Twitter - @SQLByDustin Blog - https://dustindorsey.com/ I have been working with SQL Server for over a decade in development and administration Active speaker and blogger

Thank you for being my friend! And thank you to all the other sponsors and organizers!!!

Evaluations!

Agenda What are mystery databases? Talk about why we even care Discuss the challenges and cost implications associated with mystery databases Look at things you can do to figure out what these databases are used for

What is a mystery database? A database that you are responsible for supporting, but have no idea what it is

Some cost implications (Licensing) (Resources) (Storage) (People)

Other implications (Upgrades) (Migrations) (Troubleshooting) (Scheduling) (Decommissions)

We need to investigate! WHO, WHAT, WHEN, WHERE, WHY, HOW

Shut it off and see who screams!

No perfect solution

Non-technical list Ask around… Someone may know something Look for documentation Look for old support requests

Who is using this database? Check to see who is actively connecting to the database Check to see who has access Tracking connection activity over time Sp_whoisactive, sp_blitzwho, sp_who, etc. Look at users who have access to the server… Check database permissions that indicate permissions where explicitly granted Start tracking connections over time Benefits: Know distinctly which databases are getting connected to and how often Tracking for what accounts are being used… helpful for cleanup of old accounts Understanding of what hosts connections are coming from, this is useful when you need to know where the apps are located See specifically what is accessing a database… and avoid false positives such as maintenance scripts\backups\monitoring\etc Decommissions What programs are connecting?

Database properties Information from sys.databases Extended properties

Track database growth Check the size of your backups to see if they are growing Check to see if the transaction log is growing

Database usage Look for plans in the plan cache Review index usage stats (read\writes) View Transactions\sec perfmon counters Use extended events\profiler Plan cache – Good indicator but may not catch everything due to memory pressure or RECOMPILE hints

Database design Review the database design Profile the data By carefully naming objects, you can perform a lot of self-documentation

Where can I start… Run periodic self-audits Start by looking at places with the most impact Largest databases Databases with the least resource consumption Old versions of SQL

Questions? Problems with connection tracking: * You are tracking connections on an interval * Logins may not be connecting to the database they are querying * Sysprocesses can only indicate one database. Sometimes multiple databases run across multiple servers