Online/Defrag Record Analysis


The Record Analysis is an independent component of Online/Defrag that precedes a record mode reorganization.

  1. Online/Defrag Extractor and Recommendation Selector
    The Online/Defrag Extractor and Recommendation Selector process reads the database and produces files that are used to maximize record or scan mode reorganizations. The process calculates parameters that will result in the greatest reduction of I/O activity (buffer searches).
  2. Online/Defrag Analyzer
    The Online/Defrag Analyzer receives the output data sets from the Online/Defrag Extractor and Recommendation Selector process and analyzes each record in the data set to determine candidacy for reorganization.

Note

The Online/Defrag job analyzes the records identified in the key list data set again to verify that they continue to meet reorganization criteria. The Online/Defrag job may specify reorganization criteria that is more or less stringent than the criteria specified during the Record Analysis.

The following figure shows the system flow for the Record Analysis.

GUID-D755A932-4125-4FFE-8A26-BD17AD72D66F-low.png

The Online/Defrag Record Analysis uses the following components and processes:

Component or process

Description

Online/Defrag Extractor and Recommendation Selector

The Extractor gathers information required to analyze database records and produces an output data set.

The Recommendation Selector uses the Extractor output and the MINREC keyword to calculate the combination of MBI and BIPF values that will result in the greatest reduction of I/O activity. The administrator defines the minimum number of records to be reorganized. The Recommendation Selector creates three output data sets: reports, an output data set directed to Online/Defrag Analyzer (ANALYZE command), and an output data set directed to Online/Defrag (OREORG command).

Output data set, OREORG

The output data set with the OREORG command is input to the Online/Defrag function.

Output data set, ANALYZE

The output data set with the ANALYZE command is input to the Online/Defrag Analyzer for record mode reorganizations. The Online/Defrag Analyzer verifies that the Recommendation Selector values for the MBI and BIPF keywords will result in the greatest reduction of I/O activity.

Online/Defrag Analyzer

Online/Defrag Analyzer uses the DBD, BIPF, MBI, and FSPF keywords to identify records that are candidates for reorganization. Online/Defrag Analyzer produces the key list data set that is passed to the Online/Defrag job.

Key list data set

The key list data set is the table of record keys that Online/Defrag Analyzer generates when MODE(RECORD) is specified. The table identifies records that are candidates for reorganization. The key list data set can be used as input to the Online/Defrag job.

Online/Defrag

Online/Defrag is the online reorganization job.

Keywords

Keywords control the extraction, recommendation selection, analysis, and reorganization.

Reports

Online/Defrag Extractor and Recommendation Selector, Online/Defrag Analyzer, and Online/Defrag automatically generate reports.

This section contains the following topics:

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*