If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DBA support tool & HOWTO's

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-28-07, 05:04
Wim Wim is offline
Registered User
 
Join Date: Nov 2004
Posts: 1,279
DBA support tool & HOWTO's

We have 3 databases: the first for development, the second for testing by our users and finally the third for production. At this moment all our project leaders have the GRANT rights to create and alter tables, triggers, views, FK-constraints, ... on all three databases.

There are multiple development teams, all working on different parts of the database, all with their own development / testing / production cycle.
Normally we replace the development and testing databases with a restore of the production database after 14 days. So development and testing can happen with realistic data.

Due to a new regulation we have to restrict the access of the project leaders to the production environment. That means we will have to do their job of creating and altering tables, views, ... We have to make sure that the scripts that were used to alter the test database (and that were tested and approved) are exactly those that will run on the production database.

What we came up with is this:
  • We allow them full access to the development database, as they can today
  • They give us the necessary (SQL?) scripts to go from a given version to the next version of that part of the database they are working on (we call that delta-scripts)
  • We run their delta-scripts on the development and test database after each restore, and finally on the production database.

But we see a lot of practical problems with this. For starters:
  • Views, triggers, SP's, indexes, FK's , ... can or can not be affected by any of these delta scripts.
  • This process should be fully automated, as it will have to be invoked after each restore.
  • The delta scripts can be altered during development en testing, yet the code that finally will run on production must be exactly the same as the one that was tested on the test database.

Any better ideas than what we came up with? Where can I find a good guide of how to manage this ?
What tools are available that can help us with the delta-scripts?
__________________
With kind regards . . . . . SQL Server 2000/2005/2008/2008 R2 Earned beers: 16
Wim
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald Knuth
Grabel's Law: 2 is not equal to 3 -- not even for very large values of 2.
Pat Phelan's Law: 2 very definitely CAN equal 3 -- in at least two programming languages
Reply With Quote
  #2 (permalink)  
Old 11-28-07, 10:08
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I'm surprised that you managed to have project leaders handle the db2 changes on production without any problems.

Basically, you seem to be moving in the right direction .. Well, if you want a spohisticated and automated change maangement system, then you should have tools like IBM change manager.

IMHO, the scope of your question is too wide to be able to answer in a discussion forum ... ( I have even had an assignment for a client exclusively to address this issue).
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 11-30-07, 08:17
Wim Wim is offline
Registered User
 
Join Date: Nov 2004
Posts: 1,279
Sathyaram,

Thank you for your reply.

Can you direct me toward publications, books, on-line resources,... that can help me with this?
__________________
With kind regards . . . . . SQL Server 2000/2005/2008/2008 R2 Earned beers: 16
Wim
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald Knuth
Grabel's Law: 2 is not equal to 3 -- not even for very large values of 2.
Pat Phelan's Law: 2 very definitely CAN equal 3 -- in at least two programming languages
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On