We have a client who has managed to overwrite their main revmedia with an incorrect revmedia. The client has not taken a backup of the database, is not running on a network, so there are not any salvage options (or equivalent), and undelete is unable to retrieve any files to undelete. This is a total shot in the dark (more like a black hole) but is anybody aware of a routine that is capable of rebuilding revmedia from the rev lk and ov tables.
Chris,
is anybody aware of a routine that is capable of rebuilding revmedia from the rev lk and ov tables
No. However, it is relatively easy to build one if:
a) You know the database - you can identify the tables from the data
b) It is REVBOOT - you can cross-reference the media from another system
You can build a REVMEDIA from scratch … each record has as a key "*", for example "SYSOBJ*GLOBAL" in the REVBOOT volume. Each record needs only fields 1 and 2 filled in:
the OS file name, for example "REV30000" (for SYSOBJ)
the MFS list (do not list the BFS here)
To see an existing media map:
1. attach the media map: run attach_table , "REVMEDIA"
2. list it by table name: run rlist "LIST REVMEDIA JUSTLEN 40 F1 BY @ID", 1
3. list it by file name: run rlist "LIST REVMEDIA JUSTLEN 40 F1 BY F1", 1
Best of luck!
Cameron Purdy