Salesforce

Can Proutil Truncate Area be used to delete Schema?

« Go Back

Information

 
TitleCan Proutil Truncate Area be used to delete Schema?
URL NameP7866
Article Number000148324
EnvironmentProduct: Progress
Version: 9.1B, 9.1C, 9.1D, 9.1E
Product: OpenEdge
Version: 10.x, 11.x
OS: All supported platforms
Other: PROUTIL
Question/Problem Description
Can PROUTIL truncate area be used to delete schema?
Will truncating an area delete the related object's schema definitions?
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution
Progress 9.1B introduced the PROUTIL Truncate Area utility to truncate a database Area for reuse by lowering the High Water Mark of the area.

Truncate Area does not delete related schema information of the objects in the truncated area. That is not the purpose of this utility. 

After truncating an Area, extents can be removed with PROSTRCT remove once all the remaining data structure are either moved to a new area using PROUTIL tablemove or indexmove qualifiers, or once the definitions are deleted through Data Dictionary tools, as part of a dump and load area migration process

The database "Schema Area" itself cannot be truncated because it contains database meta-schema. If the database needs to be redesigned so that tables and indexes are to be removed from the Schema Area there are two ways to accomplish this:
 
a)  Dump the database and then rebuild the database with a new .df file reflecting the new areas the database objects have been designed to be housed in. Then reload the data required.

b)  Use the PROUTIL mvsch option. This utility will effectively 'truncate the Schema Area" as follows:
  1. Rename the current "Schema Area" to "Old Default Area",
  2. Create a new Schema Area
  3. Move the database meta schema from the old area into the new area.  
This will cause the new Schema Area to be small in size as it only contains database meta schema information.
The old larger schema area is renamed to "Old Default Area", which is now no-longer contains schema objects, only application schema that was in the "schema area"
Once the remaining object content have been considered, the "Old Default Area"  can be truncated and removed from the database structure.

For further information refer to the following Articles:
Workaround
Notes
References to Other Documentation: 

Progress Documentation: 

OpenEdge Data Management: Database Administration, Reference, PROUTIL Utility, PROUTIL TRUNCATE AREA qualifier
 
Keyword Phrase
Last Modified Date11/20/2020 7:22 AM

Powered by