by Akatsukami » Tue Jan 11, 2011 4:38 pm
Once again, I'll begin by noting that any resemblance between my shop and a well-managed system is purely coincidental.
That said, on our development sysplex, users creating tables is a very frequent event. Whilst I don't have the DB2 usage statistics to hand (not my job to keep them), the testing tool usage statistics (which it is my job to keep), combined with my knowledge of the applications being tested, suggest that users create tables hundreds of times a day. Indeed, it is so frequent that we have a mod to our development DB2 subsystems to give objects a retention period, like data sets (and yes, expiring those katrillions of objects at midnight does tie up the sysplex for 5-10 minutes).
I think that one of the first questions to be asked of anyone posting a vaguely DBAish or sysadminish query in these fora ought to be, "Is this in a development or production environment?" I do -- it is part of my job to do -- all sorts of things in the development environment that would quite justifiably get me terminated if I were to do them in the production environment.
That said, I do not think that all the objects created by a given user can be dropped through SQL alone (albeit I am not the world's greatest expert on SQL); I think you need a little Rexx or some such to loop through the DB2 catalog tables. I'll investigate further when and if I get into my office (the weather is rather threatening here and now).
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day