Professional Documents
Culture Documents
Table of contents
Chapter 1
Chapter 3
II
11
Abstract
Whether youre taking a position as a DBA at a new company or youve been
with your current company for years, you may be facing the same challenge:
not having the optimal hardware, software, workflow or culture you need to
run a smooth environment. In fact, its often quite the opposite: the department
may have poor security practices, nonexistent disaster recovery plans, poor
documentation and substandard hardware or network configuration. Then
there are the cultural or organizational challenges: poor management, underresourced departments or poorly thought-out processes.
While it would be impractical to formulate a strategy for every possible situation,
you can put in place a handful of strategies to overcome panic and methodically
focus on issues within your control. The Essential DBA Playbook for Optimized
SQL Server Management explains how, in three chapters:
Chapter 1: Assessing Your SQL Server Environment The first step is to
III
Chapter 1
Assessing Your
SQL Server
Environment
Introduction
Too many SQL Server DBAs are stuck in
firefighting mode, forced to focus their
attention on the latest problem that pops up,
regardless of its true severity. Without a triage
framework for sorting database issues, youll
be stuck in this state of perpetual near-panic
and youll be more likely to compound or misevaluate problems.
To avoid this problem, whenever you take on any new
database management assignment, begin by assessing the
overall condition of the SQL Server environment. Its time for
some rapid battlefield analysis. Take a deep breath and start
organizing your efforts along the following steps:
1. Take inventory.
2. Catalog issues by severity.
3. Identify required resources.
4. Assess security measures for protecting information and
the environment.
Step 2.
Take inventory
How many instances and databases in the enterprise are you managing? An upto-date inventory of the hardware and systems in your purview is critical. This
helps define your field of battle.
Now its time to determine the severity of issues and assign priorities. Analyze
your environment with the big three resources in mind: disk I/O, memory and
CPU. The capacity and performance of these resources will delineate what you
can and cannot do in terms of optimizing SQL Server performance.
Identify and prioritize the most critical handful of issues in terms of environment
performance, security or (in extreme cases) viability. It will help you if you think
of database performance through the lens of the business rather than as a purely
technological issue.
This information becomes the battlefield map on which you will locate and
evaluate your trouble spots. Armed with your wider view of the battlefield, you
can start to categorize and prioritize problem areas.
Step 4.
Once youve captured tactical data and prioritized which issues represent the
biggest and most immediate threats to business operations, you need to identify
which resources are required to stabilize the SQL Server environment in the
short term. Possible resources include technical expertise, software tools, server
capacity and backup storage. Ask questions like the following:
If backups or database performance are an issue, what steps can be taken and
roughly when can a long-term fix be identified?
Is the environment sufficiently secure to protect information?
If additional resources are not available, what can you do with existing
resources?
Does the organization understand the risk?
While performance and availability will naturally be front-of-mind during the first
stages of triage, youll also need to assess security liabilities, even though some
may represent middle- or long-term threats. Be sure to keep the following best
practices in mind:
The easiest way to proceed is to identify issues you can fix with the hardware
you have on hand, and then categorize the resources you need to add, such as a
solid-state drive, another disk cabinet for a SAN or extra CPUs.
Once youve identified resource demands, communicate those needs to your
superior and appropriate colleagues. We discuss communication strategy in more
detail in chapter 3, but at a minimum, its important to convey a few key points:
Issues that you have identified, prioritized and justified with actionable
information your interpretation of relevant data, tailored to your internal
audience
The impact to the business if these issues are not addressed
Which issues you can address with resources at hand, and which will require
additional resources
Your triage report should show that you have methodically assessed the
situation and its importance. Most SQL Server databases have problems, but not
all DBAs have a plan of action. Address issues and take a proactive approach
to long-term improvement by alerting managers to both the problems and
potential solutions at once, constructively.
Conclusion
The first step in optimizing database management is to
carefully assess the SQL Server environment. By taking
the four steps detailed here taking inventory, cataloging
issues, identifying resources and assessing security you
will have the initial database infrastructure status information
you need to move on to chapter 2 of the playbook, which
explains best practices for effective backup and recovery.
Chapter 2
Establishing
Effective
Backup and
Recovery
Introduction
In chapter 1 of the playbook, you learned how
Page
title
to assess your
SQL Server environment. Now
As noted earlier, high availability and disaster recovery are not synonymous:
High availability is the measurement of a systems ability to remain accessible
in the event of a system component failure. Generally, HA is implemented by
building in multiple levels of fault tolerance into a system.
Disaster recovery is the process by which a system is restored to a previous
acceptable state, after a natural or man-made disaster. With DR, there can be
a significant loss of service while the DR plan is executed and the environment
is restored.
High availability tools and functionality built into SQL Server are designed to
ensure uptime. Here are a few options to consider:
AlwaysOn Failover Cluster Instances AlwaysOn Failover Cluster Instances
provides server-instance level redundancy. It uses Windows Server Failover
Clustering (WSFC) to provide local high availability through redundancy. A
failover cluster instance (FCI) is a single instance of SQL Server that is installed
across WSFC nodes and, possibly, across multiple subnets. On the network,
an FCI appears as an instance of SQL Server running on a single computer, but
the FCI provides failover from one WSFC node to another if the current node
becomes unavailable.
AlwaysOn Availability Groups This enterprise-level high-availability solution
was introduced in SQL Server 2012 to enable you to maximize availability for
one or more user databases. It requires that the SQL Server instances reside
on WSFC nodes without all the extra hardware typically associated with
clustering, such as shared storage.
Database mirroring Database mirroring maintains a single standby
database, or mirror database, of the production (principal) database. This
approach increases the availability of a SQL Server database by supporting
almost instantaneous failover, and also improves data protection.
Log shipping Like AlwaysOn Availability Groups and database mirroring,
log shipping functions at the database level. It is an automated backup and
restore process that allows you to create an additional copy of your database
for failover. You can use log shipping to maintain one or more warm standby
databases (secondary databases) for a single production database (the
primary database).
With this information and support, implement the agreed-upon SLAs. Regularly
test a range of scenarios to ensure that your data can be restored within the
expected time periods and SLAs.
Conclusion
Establishing effective backup and recovery is critical in any
environment. By carefully assessing your environment as
detailed in chapter 1 of the playbook and then following
the best practices for backup and recovery you just
learned, you will have a SQL Server environment that is
more reliable and easier to manage. In the third and final
chapter of the playbook, well cover how you can continue
to optimize SQL Server management by establishing
effective communication, stabilizing the environment and
taking advantage of automation.
10
Chapter 3
Ongoing
SQL Server
Management
Optimization
11
Introduction
Once you have assessed your SQL Server
Page
environmenttitle
and established effective backup
and recovery,
youhere
need to consider how to
Subhead
goes
maintain SQL Server management optimization
Body copy. Lorem ipsum dolor sit amet, consectetur
going
forward.
This chapter
explains
adipiscing
elit. In ac blandit
erat. Mauris
facilisis several
best practices
that will
help you
going forward:
mollis
odio et ullamcorper.
Curabitur
ultrices
venenatis auctor. Maecenas molestie, metus
eget
Communicate
pulvinar faucibus,
proactively
metusacross
dui varius
the organization.
felis, quis
sollicitudin
Graduatenibh
frommauris
reactive
quis
mode
lacus.
into
Nam
proactive
feugiatmode.
posuere
Take advantage
quam non.
of automation.
Bullets. Lorem ipsum dolor sit amet, consectetur
12
Communicate
proactively across
the organization.
Proactive communication is a critical skill for any
successful DBA. As you work to establish and maintain
an optimal SQL Server environment, youll need to
have discussions with appropriate parties within your
department, including both your manager and peers, as
well as with key extra-departmental players whose needs
have a large bearing on your work. Best practices for
proactive communication include:
Establish good relationships with developers and
management Capture and discuss key performance
issues and events for your team.
Gain credibility Demonstrate awareness of problems
and share what you intend to do about them.
Establish transparency and accountability Become
a conduit of relevant information for management and
colleagues, keeping them abreast of the health, status
and ongoing priorities in managing the environment.
Report on both problems and solutions Keep a
standardized report in which you update stakeholders
on the status and next steps of key issues to show that
youre bringing constructive solutions along with the bad
news. This is a career-enhancing trait that you need to
make a part of your daily routine. In addition to enhancing
transparency and accountability, these reports also build
in some protection for you in case a major potential
problem that you flagged and which required attention or
resources from others went unheeded.
13
Page title
Define goal
In chapters 1 and 2 of the playbook, you ensured that your environments most
immediate threats have been addressed and that your data is recoverable within
acceptable parameters. Its now time to look ahead and introduce stability and
visibility into your environment. This is your opportunity to switch from reactive
to proactive mode by tuning your environment to prevent problems in advance.
adipiscing
elit. In ac blandit erat. Mauris facilisis
Review
a candidate
mollis odio et ullamcorper. Curabitur ultrices
Change component
(non-production)
Run workload
A baseline and benchmark methodology helps you spot problems and engage in
a process of continuous improvement. Figure 1 shows the basic steps.
Benchmark performance
No
Improvement?
Yes
Our white paper, Ten Tips for Optimizing SQL Server Performance, provides a
methodical approach for:
Determining goals
Tracking and analyzing data
Creating a cycle of improvement that keeps you ahead of major performance
problems
The paper also includes many other helpful tips for tuning and optimizing your
environment so you can help ensure that your initial triage efforts have set the
stage for longer-term performance and stability.
Deploy to production
14
Take advantage of
automation.
Conclusion
15
Any task that is repeatable is a candidate for automation. As you identify ways
to move from being a firefighter to the guardian of an environment that breezes
along, start looking for tasks that can be run automatically and for tools that can
help deliver that automation.
Inheriting an environment that you didnt have the luxury of building can present
you with some highly stressful challenges, but solving those challenges can
be equally satisfying. By following the best practices in this playbook, you can
optimize your SQL Server environment and get out of firefighting mode and
hopefully enjoy some of your evenings and weekends after youve taken the reins.
2015 Dell, Inc. ALL RIGHTS RESERVED. This document contains proprietary information
protected by copyright. No part of this document may be reproduced or transmitted in any
form or by any means, electronic or mechanical, including photocopying and recording for
any purpose without the written permission of Dell, Inc. (Dell).
About Dell
Dell, Dell Software, the Dell Software logo and productsas identified in this document
are registered trademarks of Dell, Inc. in the U.S.A. and/or other countries. All other
trademarks and registered trademarks are property of their respective owners.
Ebook-PlaybookforOptimizedSQLServerMgmt-FullVersion-US-GM-25498
Dell Inc. (NASDAQ: DELL) listens to customers and delivers worldwide innovative
technology, business solutions and services they trust and value. For more information,
visit www.Dell.com.
Dell Software
5 Polaris Way
Aliso Viejo, CA 92656
www.Dell.com
Refer to our Web site for regional and international office information.