Selectively specifying UOWs for reorganization


SELECT_UOW=IOVF (the default) selects UOWs based on IOVF usage. When this value is specified, the reorganization function identifies and reorganizes only UOWs that extend into IOVF. By limiting the scope of reorganization, SELECT_UOW=IOVF significantly reduces processing I/O. In the example shown in the following figure, for database dbdname, the reorganization function considers UOWs for reorganization in area areaname only if the UOW extends into IOVF.

Sample control statements for selective UOW reorganization

REORGANIZE DBD=dbdname,IAREA=areaname,
  SELECT_UOW=IOVF

SELECT_UOW=(IOVF, n1 ) selects UOWs based on a minimum specified number of IOVF control intervals (CIs) used. When this value is selected and you specify a numeric value for n1, the reorganization function will identify and reorganize only UOWs that have used at least that many IOVF CIs. This value can be used to exclude UOWs from the reorganization that have used a minimum amount of IOVF based on your assessment of CI usage. An example is shown in Sample control statements for selective UOW reorganization based on minimum CIs used. For databasedbdname, the reorganization function considers UOWs for reorganization in areaareaname only if the UOW has used at least five IOVF CIs.

SELECT_UOW=(IOVF,n1,n2) selects UOWs based on a minimum and maximum specified number of IOVF control intervals (CIs) used. When this value is selected and you specify a numeric value for n1 and n2, the reorganization function will identify and reorganize only UOWs that have used at least the minimum (n1), and no more than the maximum (n2) number of IOVF CIs. This value can be used to exclude UOWs from the reorganization that have used a minimum and maximum amount of IOVFs based on your assessment of CI usage. SELECT_UOW=(IOVF,n1,n2) also allocates and limits the number of buffers used by the online reorganization function to a maximum value for n2. This feature restricts the amount of ECSA used by the online reorganization function.

Important

Specifying a minimum number (n1) and a maximum number (n2) of IOVF CIs on the SELECT_UOW keyword is optional. If only n2 is specified, use the following syntax: (IOVF,,n2).

Sample control statements for selective UOW reorganization based on minimum CIs used

REORGANIZE DBD=<dbdname>,IAREA=<areaname>,
  SELECT_UOW=(IOVF,5)

Either of the preceding values for the SELECT_UOW keyword can be combined with additional keywords to further limit UOW selection criteria.

The FRAGMENTATION_PERCENT keyword is used to specify the percentage of disorganization that must be detected in a UOW that extends into IOVF to qualify the UOW for reorganization.

Important

If you request compression (either by specifying COMPRESS=YES or COMPRESS=segmentName) on the REORGANIZE command, any value that you specify for the FRAGMENTATION_PERCENT keyword is ignored. Under this condition, the REORGANIZE command must process all UOWs to ensure that all segments are expanded and recompressed.

An example of the FRAGMENTATION_PERCENT keyword is shown in the following figure, For DBD dbdname, the command set reorganizes UOWs in areas areanam1 and areanam2 if the UOW extends into IOVF and the minimum user-specified percentage of fragmentation (2 percent) is detected. Reasonable fragmentation percentage values range from 1 to 5 percent. Fragmentation greater than 5 percent is unlikely under ordinary circumstances.

Sample control statements for selecting fragmented UOWs

REORGANIZE DBD=<dbdname>,IAREA=(<areanam1>,<areanam2>),
  SELECT_UOW=IOVF,
  FRAGMENTATION_PERCENT=2

The IOVF_SAVE_THRESHOLD keyword specifies the minimum amount of IOVF that must be saved before the UOW is selected for reorganization. The amount can be specified as the number of CIs or as a percentage of the IOVF that is used by the UOW. The following figure specifies that UOWs will not be reorganized unless five or more IOVF CIs are released.

Sample control statements for setting minimum IOVF savings by count

REORGANIZE DBD=<dbdname>,IAREA=<areaname>,
  IOVF_SAVE_THRESHOLD=5

The following code specifies that UOWs will not be reorganized unless 10 percent or more of the IOVF control intervals that are allocated to the UOW are released.

Sample control statements for setting minimum IOVF savings by percent

REORGANIZE DBD=<dbdname>,IAREA=<areaname>,
  IOVF_SAVE_THRESHOLD=10%


 

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