Click here to monitor SSC

Rodney

Weekly Status Report and How DBA Managers Lose Their Edge...

Published Thursday, April 24, 2008 9:03 PM

So each week, I am required to turn in a weekly status report that demonstrates in summary fashion what I have accomplished the previous week. In a smoothly running SQL infrastructure of even 90+ servers, DBA managers may find themselves in a repetitive rut of similarity week to week.  And for the DBA who reports to a network engineer, it really boils down to "SQL Good" or "SQL bad". When "SQL bad", which should happen less than 3% of the time heroic action is required. 

It just so happened recently, reported fully in my WSR, that I noticed that an MSDB database had grown to over 8G and was growing by at least 100M per day.  There was about 1G left on the C: drive where SQL was installed (not recommended) so I did not panic but I had to find out. I could have asked one of my proficient DBAs to investigate, but with the side-sagging over glut of non-grunt work, I was feeling like I would take this...I got it, seriously.  First...find out where the 8G was coming from. Not as easy as it should have been.  sp_msforeachtable to get row sizes did not work on the system database. I could have investigated. However, why not a quick cursor to get row counts. Still nothing revealed but my own skin-scraped embarassment at spending more than 20 minutes on this.  I eventually came by and by to the sys.sysxmitqueue table.  Being that it is a sys. table, it was not easily accessible, nay, it was unobservable by standard means.  With a quick bit of research, I found the view that exposes this sys table and that is: sys.transmission_queue. There were close to a million records there.  This all happened because someone long ago wanted to understand Service Broker..a noble idea, but without the understanding of how to turn it off, even after disabling Service Broker itself, or the endpoint that was created.

The database, msdb, was still enabled for the Broker and was apparently trying to send many many messages that it could not send.

 SQL Bad.

Surely it would only be a matter of minutes to clean all of this up. Well, kind of.  Because the data file was so full, shrinking was not going to be useful.  I had to remove these failing messages. The way I discovered to do that was to create a new broker, which would flush out all messages, supposedly.

Alter database msdb Set New_BROKER

This did nothing that I saw but get blocked behind other processes (BRKR_Task as I recall but this was the beginning of the week and I do not keep good notes for my WSR)

So, next I disabled it.

Alter database msdb Set Disable_BROKER

This worked but did not flush anything but my face.

So I tried to end the conversation, which should have definitely flushed everthing.

END CONVERSATION '{1F9B06DB-7B4B-DC11-B999-005056A249D6}' WITH CLEANUP ;

And it began surely to remove data. But..unfortunately, it must have used delete statements because in about 10 minutes the log file filled to almost a gig. Remembering that I only had a Gig left to begin with, this was obviously not good. With 7.94Megs left on the drive, I now panicked.

Kill process...roll back...shrink log...turn in report.

At least, I thought, it will not try to send any more messages. The next day I discovered that I had 3G available...a small unexpected gift.  So, it did work. 

When I was in the trenches and doing this everyday, I would have wanted to know exactly what happened and I still do..the difference now is that I do not have to stay up until 3:00AM duplicating the issue just so I can sleep. 

I AM losing the edge.

 

 

 

by Rodney

Comments

 

dba status said:

May 13, 2008 6:50 PM
 

sagreene said:

I'm curious how you identify these databases - what your time ranges and thresholds are.
May 21, 2008 4:40 PM
 

sagreene said:

I use your SSIS, by the way - love it!
May 21, 2008 4:41 PM
 

Rx400h Substitute Page Lexus, Rx400h Accessories Buy Lexus said:

May 20, 2010 12:15 PM
 

Maxxis Aspen Pushes Tyre, Aspen Boiler Greenwood Technologies said:

May 20, 2010 1:59 PM
 

J20 Ingredients Using, J20 Winamp said:

May 20, 2010 2:02 PM
 

Plymouth Neon Aftermarket Headlight Assembly, Neon Upgrade Srt 4 said:

May 21, 2010 3:41 AM
 

J200 Sunbird Manuals Grand Wagoneer, J20 Sunbird Part Promotion said:

May 21, 2010 1:03 PM
 

Aurora Radiator Quality Plastic Tanks, Oldsmobile Aurora Headlight Bulb Replacement Cutlass Supreme said:

May 21, 2010 3:28 PM
 

Jeep Grand Wagoneer Tailgate Window, 1995 Jeep Cherokee Country Specs said:

May 21, 2010 3:41 PM
 

Prelude Half Radiator Honda Crx, Order 1991 Honda Crx said:

May 21, 2010 9:40 PM
 

Es330 Clearance Inventory, Find Sc400 Lexus Es330 said:

May 21, 2010 11:13 PM
 

Elinchrom Ranger Quadra Beauty Dish, Dvd Ranger Software said:

May 22, 2010 3:01 AM
 

300ce Upcoming, Find 300ce Mercedes Benz said:

May 22, 2010 3:27 AM
 

Amazon P3500, P35 P3500 Van Accessories Part Number Ac Delco said:

May 22, 2010 3:58 AM
 

Honda Cr V Sport Review Toyota Rav4, Toyota Rav4 Used Ford said:

May 22, 2010 1:22 PM
 

Dodge Dakota Auction, 2003 Dodge Dakota Exhaust System said:

May 22, 2010 7:01 PM
 

K10 Sheet Music, Part Fender Flares Chevrolet K10 Suburban said:

May 22, 2010 8:14 PM
 

V3500 Pictures, Avocent Lv3500w said:

May 22, 2010 8:22 PM
 

Vibe Chat, Vibe Discount Liquid Vitamins Mapquest - 50.computeronlinebingo.com said:

May 22, 2010 11:39 PM
 

Ar15 Radiator Precision, Precis Demo File - 231.tgrconversions.com said:

May 23, 2010 2:34 AM
 

Cheap Parts 2002 Ford Windstar Transmission, Ford Windstar Floor Mats Heel Pad - 409.akemet.com said:

May 23, 2010 4:27 AM
 

560sl Used Manual, 560sl Hid 1986 Mercedes - 341.mfbattle.com said:

May 23, 2010 4:48 AM
 

Newport The World, Newport Harbor Rhode Island - 412.tvshowzone.com said:

May 23, 2010 5:57 AM
 

Gmc Caballero Price Canada, Caballero Repair Car - 123.cmanager.org said:

May 24, 2010 5:05 AM
 

J30 Replacement Belt Infiniti Qx56, Change Belt Dc04 - 32.rkwrh.com said:

May 24, 2010 7:39 AM
 

1995 Mazda Miata Engine Cylinder, 1996 Miata Mx 5 Curb Weight 16 Inch Alloy Wheels - 341.codebluehacks.org said:

May 24, 2010 10:51 AM
 

Part Saturn L200, Buy Lw200 Fender Saturn L200 - 212.rkwrh.com said:

May 24, 2010 1:55 PM
 

Micra Episodes Online, Nissan Micra For Sale Melbourne K12 - 293.eumreborn.com said:

May 25, 2010 1:27 AM
 

Ml430 Recycle, Ml430 Parts Catalog Fuel Injector Spark Plug Wires - 104.eumreborn.com said:

May 25, 2010 6:41 PM
 

220d Replacement Engine, 220d Auto Mercedes Benz 450sl - 48.akemet.com said:

May 25, 2010 6:56 PM
You need to sign in to comment on this blog
<April 2008>
SuMoTuWeThFrSa
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910
How to Kill a Company in One Step or Save it in Three
 The majority of companies that suffer a major data loss subsequently go out of business. David Wesley... Read more...

Migrating from OCS 2007 R2 to Lync: Part 4
 Having migrated the rest of our users and legacy resources across, and start getting ready to... Read more...

Automated Script-generation with Powershell and SMO
 In the first of a series of articles on automating the process of building, modifying and copying SQL... Read more...

Seth Godin: Big in the IT Business
 Seth Godin has transformed our understanding of marketing in IT. He invented the concept of 'permission... Read more...

Using SQL Test Database Unit Testing with TeamCity Continuous Integration
 With database applications, the process of test and integration can be frustratingly slow because so... Read more...