DBA Life

DBA Cat in the Hat

My Mother used to write poems and rhymes.  She had so much fun at it that we kids used to have the most elaborate rhyming clues to finding Easter treats and small toys each year,  Easter started to get a little out of hand just so my Mom could practice her poetic skills, (not that we kids minded! :))

I thought I would have some fun with rhyming, but I think I’m closer to Cat in the Hat than Keats or Byron… 🙂

If there were no developers, I would be so bored,

Just ask them, they say DBA’s appreciate battles and discord!

The database when first built, it hummed happily and purred right along

but then the code arrived and the beginning game of database ping-pong.

I recommend, “tread lightly, calculate efficiently and fast”

The developer says “No problem, but did I forget to tell you 200 GB of TEMP is needed to last?”

I look very cross and throw darts at the pictures up on my cube wall

but the developers just say, “Don’t blame me, it was management’s call!”

They ask me again and again, why is Oracle so, so slow?

I look at the explain plan and and say, “You hinted nested loops, oh no!”

Did you calculate stats? What method option did you use?

They reply, “Oracle needs stats before it decides to choose?

The developer emails me later on and says, the query is about to tank.

I run a tkprof and sigh aloud after seeing what its doing with dense_rank.

I look at the latest ADDM and the question poses on my face,

the developer assures me that many parallel slaves are required at this pace.

I show the developer the PX waits and lecture about the resource allocation

the developer just sees the memory left for the OS and thinks, four more simultaneous executions!

I would lock out the accounts and change permissions on everything

but lets be honest-  I’d be bored out of my mind and asking them to do something!

5 thoughts on “DBA Cat in the Hat

  • Hey Kellyn, I’ve been following your blog and twitter feed for a while and you seem like a very sensible practical development and prod DBA. So… a slightly related question to this post for you –

    Working with development teams – how do you, or do you – seperate the Oracle database maintenance patches – PSU updates – with application patches and the developers desire to have EVERYTHING included in the full SDLC?

    I am use to having database PSUs tested seperate from the apps that run on them with the database administration team having its own patch deployment schedule etc, but I now find myself at a company with a large development team that want all changes (config or patches) to databases and the OS bundled in with application testing releases process following the internal SDLC.

    This means that the latest Oracle PSUs can’t be tested until the next application patch round whenever that is. If I want to update a shell script it has to go in the SDLC 🙂

    Oracle insists that PSUs have been stress tested, validated, regression tested, contain no plans changes etc so I would think that deployment of these could be done under a seperate maintenance life-cycle.

    Just wondering what your thoughts are on this and how you handle it.

    Thanks
    Kirk

  • Hi Kellyn. First off, your last sentence – good answer! 🙂

    Do you put your PSU patches through a testing process with your devs or you have your own outside of that scope?

    I know what you mean with the cure being worse than the disease. I’ve had a few odd things happen with patches. Normally I read the release notes to see what bugs are fixed, and if there is nothing that directly fixes anything we use then I am not inclined to apply.

    However these days it seems that there is no particular version of Oracle where all the features work as advertised 🙂

    With 11.1 in production here (that’s a whole other topic – to run *.1 releases or *.2 releases) I have been desperate to patch as there are/were so many bugs. We’re on 11.1.0.7.3 now and it is pretty stable with ORA-600’s only generated now by RMAN, views over database links, OEM SQL Analyser and Quest Spotlight! ASM no longer bombs after 3 days use.

  • Thanks Kellyn 🙂 Glad I made you feel soooo happy!

    Yeah, it was a nightmare. I arrived with pretty much the whole architecture already locked down, 2 months before go live, and no DBA. Running 11.1.0.6 BASE release. Brand new core/critical system using new 11g partitioning features, ASM, Data Guard. Deployment method: out with the old/in with the new / big-bang implementation. With the whole lot hosted on un-patched VMWare ESX 3.5. ’twas scarey.

    Just saw your Pythian post – congrats! As I follow their posts I guess I/the world will be hearing more of you?

Comments are closed.