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