Database Actions to Take After Archiving or Deleting Data 

Oracle and Informix: Reorganize index

If data has been archived or simply deleted and the associated tables were accessed via an index, the index should be reorganized. Deleting table entries leaves holes in the table which are still indexed. Reorganization can shorten the access paths, reducing response times.

For databases with a cost-based optimizer: update the database statistics

If your database uses a cost-based optimizer, you must choose Update Statistics to recalculate the access paths.

Oracle and Informix: Reorganize tablespace

Whether you should reorganize the tablespace depends on the reason for archiving.

The procedure is described in the Basis document Database Administration (SAPDBA, for Oracle and Informix databases) or ABAP/4 Dictionary, section Tablespaces and Extents (database-independent parameterization for ADABAS).