So Chris Shaw called me on a SQL Quiz. I like it. It is so much less painful to learn from someone else's mistakes than your own. Here are the details.
<snip>I started to think about this and I am going to try to start a game of tag. So here is the way it works, for many new DBA’s they may not realize that all of us have made mistakes and that our mistakes can be… rather stupid. I challenge each of the people I tag in my blog to post as least one mistake that they recently made I will start by describing 2 mistakes that I made. One of my mistakes was as a junior DBA and one about 6 months ago. The point of this game is to in no means embarrass ourselves or discredit ourselves. But more of a learning experience from our mistakes type of a deal.</snip>
<snip>
I started to think about this and I am going to try to start a game of tag. So here is the way it works, for many new DBA’s they may not realize that all of us have made mistakes and that our mistakes can be… rather stupid. I challenge each of the people I tag in my blog to post as least one mistake that they recently made I will start by describing 2 mistakes that I made. One of my mistakes was as a junior DBA and one about 6 months ago. The point of this game is to in no means embarrass ourselves or discredit ourselves. But more of a learning experience from our mistakes type of a deal.
</snip>
Before I start, let take this opportunity to look at what could result from a DBA’s mistake.
No pressure, right?
1.
The first big mistake I made was pretty bad. I almost gave up SQL Server. It was right after SQL Server 7.0 came out. A new customer was trying to move there data to their hosted application. It was a few tables. <Lightbulb> Hey, that sounds like a good use for that new DTS thingymabobber <Lightbulb /> So I go through the DTS wizard and it fails after creating the schema. I run the wizard again and it works EXCEPT I got the source and destination backwards. Now, they have empty schemas on both sides. Since the source was their development environment, they didn’t have backups. Of course.
What I learned: Always check for backups. No matter what you do, have a backup you can trust. That goes beyond disk backups sometimes. Copy them to somewhere on the network if you are working on the storage. Do a SELECT INTO before you do that adhoc DELETE. Srsly, don’t be that guy.
2.
We were having ongoing disk IO issues. Later on that night, I am adding a disk array. However, while poking around I discover that the stripe size of the existing data drive is 8k. It looks like I can easily “migrate” it to 64k. I quote migrate because that is what it says in the HP management software. That doesn’t sound destructive does it? Psst, it is. A few hours later, the database had been restored but we were sector aligned and had a had a 64k stripe size. That doesn’t sound so bad except the application cannot afford a couple hours of down time even for a free 10% of disk performance.
What I learned: Don’t be a cowboy. Up until then, it was on the job training. I learned it as soon as it broke and I had to fix it. It is a good way to learn but a bad way to DBA. All changes should be planned, tested, executed or rolled back. A cowboy DBA may shine 99% of the time but that one time can blow the SLA for the year.
Runner ups:
Who am I calling out? You. If you are reading this, I am throwing down the gauntlet. I shall name names too by picking on the recent commentators.
K. Brian Kelly
Marlon Ribunal
Mladen
Ted Malone
Rhys
Tom
Jimmy May, Aspiring Geek
Michael O'Neill
Ludovico Caldara
Adam Machanic
Aaron Lowe
I was also asked to plug, http://sqlfool.com , by someone other than Michelle so I will call her out too.
posted @ Thursday, November 06, 2008 2:22 PM by Steve Withington
posted @ Thursday, November 06, 2008 2:34 PM by SQLDenis
posted @ Thursday, November 06, 2008 2:44 PM by JasonMassie
posted @ Thursday, November 06, 2008 3:33 PM by Steve Withington
posted @ Thursday, November 06, 2008 6:20 PM by Tom
posted @ Thursday, November 06, 2008 6:54 PM by Adam Machanic
posted @ Thursday, November 06, 2008 7:03 PM by Tech4Him
posted @ Friday, November 07, 2008 9:26 AM by Tech4Him
posted @ Friday, November 07, 2008 10:53 AM by K. Brian Kelley - Databases, Infrastructure, and Security
posted @ Friday, November 07, 2008 12:14 PM by Michelle Ufford
posted @ Saturday, November 08, 2008 3:56 PM by Ludovico Caldara
posted @ Wednesday, January 21, 2009 7:32 PM
Name (required)
Email (required)
Website
Notify me of followup comments via e-mail