Академический Документы
Профессиональный Документы
Культура Документы
MISTAKES ON SQL
SERVER
Kevin Kline
AGENDA
About SQL Sentry
The Top 10 Countdown: DBA Mistakes on
Microsoft SQL Server
o Mistakes come in surprising forms
o Often people & process, instead of technology
9. BUSINESS IGNORANCE
As the IT professional, you should know how SQL Server
works at an internals level.
o What is checkpoint? Lazywriter?
o How is TempDB used? Whats in the plan cache?
SQL University
SQL Crunch
SQLBlog.com
Who cares if this app is down? How much does the downtime cost the company?
What are the business cycles?
When are the best downtimes?
Baseline? Benchmarks? What is normal?
for mentoring:
8. NO TROUBLESHOOTING
METHODOLOGY
When the chips are down, the DBA needs a
strong, step-by-step methodology for root-cause
analysis. Without one, you get:
o
o
o
o
DEMO
6. SECURITY AS AN AFTERTHOUGHT
SQL Injection is the #1 hack on the internet today.
o Remarkably, we knew as much about preventing SQL Injection ten years
ago as we do today.
Ensure the least privileges principle for applications running on your servers
How much surface area do your servers expose?
Who has access to your servers?
How do you find out the who, what, and when of a breach?
5. INADEQUATE AUTOMATION
Automation is the means by which DBAs work smarter
instead of harder. Ironically, it takes a lot of work at the
outset to automate.
Without automation, DBAs must deal with:
o Manual processes prone to error, omission, and forgetfulness
o Inability to scale environment to multiple servers
o Time constraints from fire-fighter and script-pusher modes
Brittle applications
Applications complexity
Excess resource consumption
Ooooh! Shiny!
Design reflects the current fad
2. INADEQUATE PREVENTATIVE
MAINTENANCE
Proper preventative maintenance (PM) helps you:
o Catch issue before they become problems
o Ensure optimal performance
o Perform resource intensive operations with few, if any, users on the system
BONUS BLUNDER:
REINVENTING THE WHEEL
Most PM has already been written and vetted by
others.
Check out:
o www.sqlfool.com
o www.olahallengren.com
Its
All About
The Data, All
The Time, Every
Time
SUMMARY
1. Only
a few b
ig DBA
to tech
blunde
s k ills :
rs ar e
d ue
Di
sks as
spa
No
trouble ce, not IO
shootin
Go
g meth
i
n
g with t
odology
2. Most
h
e defau
DBA bl
lts
un
a
nd bu s
ity as a
W
n aftert
rong fe
hought
atures
Ch
ange m
a
Pr
eventat nagement
ive
Ba
ckups < maintenance
/autom
> Reco
ation
very
RESOURCES
http://www.sqlcat.com - Excellent source of SQL
Server best practices, white papers, etc.
Paul Randal and all the blogs at SQLSkills
http://www.sqlskills.com/blogs/paul/ et al
http://SQLPerformance.com
http://www.sqlpass.org
Q&A
THANK YOU!