Salesforce

How to remove extents from a replication enabled database ?

« Go Back

Information

 
TitleHow to remove extents from a replication enabled database ?
URL NameHow-to-remove-extents-from-a-replication-enabled-database
Article Number000185241
EnvironmentProduct: OpenEdge
Version: 10.x, 11.x
OS: All supported platforms
Question/Problem Description
How to remove extents from a replication enabled database
Can database extents be removed from a replication enabled database without disabling replication?
Can empty database areas/extents be removed from a replication enabled database without having to re-baseline replication?
Can empty variable extents be removed from an OpenEdge Replication database?
Why can AI files not be removed from a replication enabled database without first having to disable replication?
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution
The source database backup and restore step can't always be skipped because for removing the empty database areas/extents replication has to be disabled, Source database areas/extents have to be removed and target database has to be rebaselined (which involves a backup/restore).
  1. Disable replication on both source and target databases
  2. Shutdown both source and target databases. Database shutdown is required because presently it is not possible to remove database areas/extents online. For more details please refer to Article  Is it possible to remove a database area or extent online?
  3. Remove the required areas/extents from Source database as described in Article  How to Remove Storage Areas and Data Extents in Progress 9.x, 10.x, and 11.x.
  4. Re-enable replication as described in Article  How to re-enable replication after having disabled it   Alternatively, an OS BACKUP method that can be used instead of PROBKUP / PROREST for details please see Article  How to use OS-copy for recreating a Replication Target database
Considerations when removing extents on replication enabled databases (PROSTRCT REMOVE):
  • Any Storage Area/Extent type cannot be removed online only offline.
  • Unlike the replication enabled source database, any Storage Area/Extent type cannot be removed on the target database when replication is enabled, as the before-image file needs to be truncated first before removing extents, which is not allowed. With the exception of AI extents provided the target is not enabled for after-imaging.
  • After-Image extents cannot be removed while after-imaging is active. For the source database, this would mean having to disable replication first. 
  • Before-Image extents can be removed on the source database without necessarily having to re-baseline replication as long as the target database has sufficiently sized bi space in relation to the source when it is re-started. New before-image (bi) extents cannot be added to the target database when the last bi extent is a variable extent.  Since the variable BI extent first needs to removed to add additional bi extents, the operation will fail.  It is therefore recommended to add more fixed bi extents to the target database than the source database when initializing the replication baseline.
  • Data extents can be removed on the source database without necessarily having to re-baseline replication. As long as the sum of data extent sizes on the source database for that Area are less than or equal to the sum of data extent sizes on the target for the same Storage Area.
  • Storage Areas can be removed on the source database but necessitate a target re-baseline in order for the source and target databases to have the same area definitions. 
Workaround
Notes
Keyword Phrase
Last Modified Date11/20/2020 7:09 AM

Powered by