Start of Content Area

Procedure documentation Reorganizing All Indexes of One Table with SADPBA  Locate the document in its SAP Library structure

Use

You can use SAPDBA for Informix to reorganize all the indexes of one table. SAPDBA rebuilds the indexes using the parameters that you specify.

Prerequisites

Procedure

  1. Choose Reorganization ® Reorganize Index(es) ® All Indexes of one Table in SAPDBA for Informix.
  2. In table name, enter data as required. If you do not know the name of the table for which you want to reorganize the indexes, you can use a partial entry (for example, a0*) and SAPDBA lists the matching tables.
  3. If you want to analyze the table information again before you reorganize, choose Table Information.
  4. Choose Continue.
  5. SAPDBA displays a set of parameters specifying the reorganization.

  6. Enter the fill factor.
  7. This parameter specifies the fill level of the indexes when reorganized. Set it as follows:

    - If the underlying table is dynamic (that is, a lot of new data is being added) specify a low fill factor.

    - If the underlying table is static (that is, little new data is being added) specify a high fill factor.

    The value initially displayed is a default which you can find in the ONCONFIG file:

    FILLFACTOR 90 # Fill factor for building indexes

    You can use SAPDBA to view the ONCONFIG file. Refer to Listing System Information with SAPDBA. The file is called onconfig.<hostname>.<sid> and you can find it in the directory $INFORMIXDIR/etc .

  8. Enter the value for 'detach' index in dbspace.
  9. This parameter specifies whether the reorganized indexes remain in the same dbspace. You can enter a new dbspace if you want to detach the indexes and store them in a separate dbspace.

    Caution

    To reorganize the indexes, SAPDBA needs to lock them. Therefore, it is best to reorganize when the R/3 System is down, to avoid performance problems. You might also experience unpredictable results if the indexes you are trying to reorganize are locked by another process.

  10. Choose Continue to reorganize the indexes.

SAPDBA reorganizes the indexes.

Note

You might see warning messages during the reorganization. These alert you to possible problems and often advise you on the best course of action.

Result

After an index reorganization, your database is less likely to run into space problems. However, you need to keep on monitoring the index, especially if the underlying table is growing rapidly. Refer to Storage Analysis of Tables and Indexes with SAPDBA.

Note

You need to periodically clear up the $INFORMIXDIR/sapreorg (UNIX) or %INFORMIXDIR%\sapreorg (NT) directory in which SAPDBA creates working directories and files. Refer to SAPDBA Housekeeping.

 

See also:

Informix documentation