The term "OS Copy" in this Article refers to OS disk mirroring, VSS, VM snapshot Volume snapshot or any other Third Party Tool utilities are used to provide data redundancy as part of a backup and recovery strategy.
If the original database is still available at the previous location:1. Ensure the database is still accessible, without ai file corruption.
2. Stop all running processes against this database including cron jobs.
3. Truncate the bi file and take the OS copy again.
4. To use the OS copy database files in a new location, update the Control Area by running PROSTRCT REPAIR. For detailed instruction refer to Article:
To use this database copy to apply transaction notes recorded after the OS copy was taken, refer to Article:
If the original database is still running and an Enterprise Database License is installed:1. Quiesce the database with :
proquiet dbname enable 2. Take the OS copy and assure all files are copied including the ai files. When PROSTRCT REPAIR is run against this OS copy, assure a complete structure file, including ai extents with full paths is available (<dbname>.st)
3. Disable database quiescense:
proquiet dbname disableFor further information refer to Article
What are Database Quiet Points? If the original database is no longer available or the original database has ai file corruption:The key factor on this repair is that
only the AI Extents have timestamp mismatch errors.
1. Stop after-imaging:
$ rfutil dbname -C aimage end
2. Remove current AI files.
It is imperative that corrupt AI files are removed. When enabling ai later, (Step 4) it is only the header which is reformatted not the content on existing ai files which may work but will more likely than not result in the same problem when the database is next accessed.
The following command needs to be run once for each AI file to remove all AI extents
$ prostrct remove dbname ai
3. Add new AI files
Create a structure file
'add.st' file (for example) and then edit this text file, so that it only contains AI extents' definitions needed.
$ prostrct add dbname add.st
4. Enable After-Imaging and the AIMGT deamon if required
$ rfutil dbname -C mark backedup
$ rfutil dbname -C aimage begin -G 0
$ rfutil dbname -C aiarchiver enable
An alternate and recommended method to OS copies:When this type of situation is caused by someone having run an OS copy then not having the new location of the copied extents in place when subsequently running the PROSTRCT utilities. You end up with two control areas accessing different database extent locations.
Restore the database with
'prorest' command (from Progress backup taken with
'probkup') to create the database on the new server / disk location.
Once restored, AI files can be added if not included in the restore structure and AI re-enabled as required on the restored database.