home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / database / ingres / 2141 < prev    next >
Encoding:
Text File  |  1992-12-24  |  2.1 KB  |  46 lines

  1. Newsgroups: comp.databases.ingres
  2. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!uvaarpa!cv3.cv.nrao.edu!mail-to-news-gateway
  3. From: pneal@ingres.com (Calgary (Kal-gree), (403) 262-8119)
  4. Subject: RE: DB admin tools
  5. Message-ID: <199212232117.AA13643@pony.ingres.com>
  6. Sender: root@nrao.edu (Operator)
  7. Organization: National Radio Astronomy Observatory
  8. Date: Wed, 23 Dec 1992 21:17:36 GMT
  9. Lines: 35
  10.  
  11. Rob McNicholas wrote ...
  12.  
  13. >I'm working on a database which is in a constant state of flux.
  14. >Necessity dictated that we put it into production before we had really
  15. >worked out all the problems, so I often find myself dropping and
  16. >recreating tables to add a new field, or change a field's size or
  17. >type, etc.  After doing this once or twice, I quickly learned that
  18. >there are many side effects of these kinds of changes.  For example,
  19. >dropping a table causes any views, forms, or permits which referred to
  20. >that table to be destroyed also, so the DBA needs to create scripts to
  21. >recreate all the different pieces, and remember to update these
  22. >scripts whenever a change is made anywhere.  Unfortunately, Ingres
  23. >doesn't seem to provide any tools to help make this kind of change
  24. >easier.  I've been using unloaddb and then editing the scripts to
  25. >recreate just the parts i need, but this is tedious, and it doesn't
  26. >handle forms or views very well.
  27. >
  28. >I've been thinking about writing my own tools that would access the
  29. >system catalogs and help find all references to a particular table or
  30. >field, so that these changes would be easier to manage.  But before I
  31. >do it myself, I ask:
  32. >
  33. >Does anyone have any suggestions for any Public Domain or commercial
  34. >products which would provide this kind of functionality?
  35.  
  36. If you have a copy of Ingres 6.4/02 you will find an application in the sig
  37. directory ($II_SYSTEM/ingres/sig) called schemadef_II.  It currently does what
  38. you are looking for ... altering a table and keeping all of its attached 
  39. objects.  The codeline will run against any 6.4 database.  If you haven't
  40. upgraded to 6.4 yet, maybe now is a good time?
  41.  
  42. Cheers,
  43.  
  44. Paul
  45. pneal@ingres.com
  46.