home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / ingres / 2173 < prev    next >
Encoding:
Text File  |  1993-01-06  |  2.3 KB  |  51 lines

  1. Newsgroups: comp.databases.ingres
  2. From: raph@panache.demon.co.uk (Raphael mankin)
  3. Path: sparky!uunet!pipex!demon!panache.demon.co.uk!raph
  4. Subject: Re: DB admin tools 
  5. Distribution: world
  6. References: <1993Jan5.004315.1@gsbacd.uchicago.edu>
  7. Organization: Solvfield Ltd.
  8. Reply-To: raph@panache.demon.co.uk
  9. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  10. Lines: 36
  11. Date: Wed, 6 Jan 1993 21:15:21 +0000
  12. Message-ID: <726354921snz@panache.demon.co.uk>
  13. Sender: usenet@demon.co.uk
  14.  
  15. In article <1993Jan5.004315.1@gsbacd.uchicago.edu> cs_mj@gsbacd.uchicago.edu writes:
  16.  
  17. >In article <ROBM.92Dec22120335@ishtar.Berkeley.EDU>, 
  18. >robm@ishtar.Berkeley.EDU (Rob McNicholas) writes:
  19. >
  20. >> I'm working on a database which is in a constant state of flux.
  21. >> Necessity dictated that we put it into production before we had really
  22. >> worked out all the problems, so I often find myself dropping and
  23. >> recreating tables to add a new field, or change a field's size or
  24. >> type, etc.  After doing this once or twice, I quickly learned that
  25. >> there are many side effects of these kinds of changes.  For example,
  26. >> dropping a table causes any views, forms, or permits which referred to
  27. >> that table to be destroyed also, so the DBA needs to create scripts to
  28. >> recreate all the different pieces, and remember to update these
  29. >> scripts whenever a change is made anywhere.  Unfortunately, Ingres
  30. >> doesn't seem to provide any tools to help make this kind of change
  31. >> easier.  I've been using unloaddb and then editing the scripts to
  32. >> recreate just the parts i need, but this is tedious, and it doesn't
  33. >> handle forms or views very well.
  34. >> 
  35. >> I've been thinking about writing my own tools that would access the
  36. >> system catalogs and help find all references to a particular table or
  37. >> field, so that these changes would be easier to manage.  But before I
  38. >> do it myself, I ask:
  39. >> 
  40. >> Does anyone have any suggestions for any Public Domain or commercial
  41. >> products which would provide this kind of functionality?
  42. >
  43. I have a program that will unload an Ingres or Oracle 6 database into an SQL
  44. stream. It unloads tables and views (selectively or totally), with or   without
  45. the data. If anyone wants the code I can email it.
  46.  
  47. Using this prog it is relatively easy to alter the attributes of a table.
  48.  
  49. -- 
  50. Raphael Mankin            Nil taurus excretum
  51.