Dump tables from a damaged database
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Occasionally, data is damaged and the index rebuild utility does not work. When this happens, you can use the p-dump.p procedure to dump the data in a table called item. The p-dump.p procedure runs slowly on large databases. Use it only when you cannot use the Index Rebuild utility.
|
In this procedure, data from the item table is dumped into the item.d file.
Use the item.d file with the reload procedure.
For more information on loading, see Dumping and Loading
In the p-dump.p procedure, you must set the
end value for the DO block high enough (10,000
in the previous example procedure) so that every record in the database
is examined. Calculate a safe value using the following formula:
|
The database block size varies among systems. Use the PROSTRCT STATISTICS utility to determine the database block size for your system.