Use
Before you reorganize the Oracle database with SAPDBA, we recommend that you check extents and fragmentation for the objects you intend to reorganize. This helps you to
decide if a reorganization is necessary.Prerequisites
Procedure
The default is to check all objects in the database, displaying all that have more than two extents. You can refine the search by entering:
To refine the display, enter a tablespace name.
Look at the following values:
If these values are high, a reorganization is indicated. A value close to 1 is optimal.
SAPDBA displays the extents in the table according to their physical sequence within the data files.
Choose Segment, then:
Estimate/Compute table/tablespace locks only the table record just examined.
Validate index locks the entire table belonging to the index.
These options are equivalent to the command sapdba –analyze . For more information on the parameters, see sapdba -analyze.
You can use the information displayed as a starting point for reducing storage sizes of tables, indexes, or tablespaces during a reorganization. We recommend that you always leave a safety margin of 10-20% extra space in an object. This safety margin is automatically set when you reorganize with the Reduce object size: yes option.