Purging the metadata version history

As the metadata repository is usually maintained in a database, it would be necessary to purge unnecessary and archaic customizations made to composites that are no longer applicable. Purging is only required for database-based MDS repositories, as file-based repositories do not maintain composite version histories. Purging the metadata version history from a partition deletes all unlabeled documents from it, leaving only the tip version (the latest version) even if it is unlabeled. Purging the metadata version history on a regular basis is a necessary maintenance activity to control database size or when its performance starts to degrade. Purging an MDS repository is performance intensive and hence should either be attempted in a maintenance window or when the system is not busy. To use Fusion Middleware Control in order to purge the metadata version history, take the following steps:

  1. You can purge the version history of unlabeled documents from a partition that is older than a selected time period. On the navigator, expand SOA and then right-click on soa-infra.
  2. Navigate to Administration | MDS Configuration.
  3. The MDS Configuration dashboard page is displayed.
  4. In the Purge all unlabeled past versions that are older than field, enter a number and select the unit of time.
  5. Click on Purge.
  6. A progress box is displayed. When the operation completes, a completion box similar to Figure 8.10 is displayed.
  7. Click on the Close tab.
    Purging the metadata version history

    Figure 8.10. Confirmation of a successful metadata version purge

It is also possible to purge the metadata version history using the purgeMetadata() command in WLST. You can specify the documents to be purged using the olderThan parameter, specifying the number of seconds. The following example purges all documents that are older than 100 seconds:

purgeMetadata(application='soa-infra', server='soa_server1', olderThan=100)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.69.163