1. Run prostrct list to update the database st file:
$ prostrct list <dbname>
2. Run prostrct repair. This allows you to
access the database but the AI file structure is still very broken.
$ prostrct repair <dbname>
3. Backup the database using probkup:
$ probkup <dbname> <backupfile>
4. Delete the existing database structure using PRODEL. Once PRODEL has been run, manually delete any AI files that remain due to the AI file structure being broken.
$ prodel <dbname>
5. Re-create the database structure using prostrct create:
$ prostrct create <dbname> <dbname>.st
6. Restore the database into the new database structure:
$ prorest <dbname> <backupfile>
Alternatively, restore the previous backup and rollforward then re-enable AI and AIMGT (if used).