Extent Check Functions 

With its menu item Check extents and fragmentation in the Reorganization menu, SAPDBA provides the following check functions:

This function checks all objects in the database.

You can restrict the search by specifying a list of tablespaces, tables, indexes or other segment types to check.

Special features when selecting the tablespaces: You would generate a list of tablespaces (PSAPBTABD and PSAPBTABI) with PSAPBTAB%. You could select a tablespace from this list. If you want to check both the objects of PSAPBTABD and the objects of PSAPBTABI, you can do so by entering PSAPBTAB%%.

The following information is displayed:

 

 

You can use the first check function listed above to search the database, the second to display detailed information about the tablespaces that have a large number of extents, and the third to display an overview of the distribution of the files in the individual extents (e.g. the fragmentation).

These options enable you to contrast the allocated and actually occupied space, based on the ORACLE function ANALYZE TABLE/INDEX <name> ESTIMATE/COMPUTE STATISTICS or ANALYZE INDEX <name> VALIDATE STRUCTURE. The runtimes of an analysis (especially when COMPUTE is used for all tables/indexes of a tablespace) can be quite long. You can also limit the time with the menu (see: Command Option -analyze).
You can analyze an individual table (Estimate/Compute table), an index (Validate index) or all objects (tables and indexes) of a tablespace (Estimate/Compute tablespace).

You can generate current statistics each time or go back to statistics that already exist (Get last analysis).

The values can be used as a starting point for reducing storage sizes of tables/indexes and/or tablespaces during a reorganization. Please note, however, that a safety margin of 10-20% is always recommended. This safety margin is automatically taken into consideration when you reorganize with the Reduce object size: yes option.

The function Estimate/Compute table/tablespace locks only the table record just examined.

The function Validate index locks the entire table belonging to the index.

 

For information on logging all check functions, please refer to Overview of the Logs and Setting the Log Checks Option.