Entering content frame

Procedure documentation Solving Problems with In-Place Alter Table Locate the document in its SAP Library structure

Use

The use of the command In-Place Alter Table to alter the structure of an Informix database table often causes performance or space problems if the actual structure change is triggered during normal system operation at once rather than gradually. This occurs if the table structure has been previously altered with In-Place Alter Table and then an application updates a large number of rows in the table at once. The result is to trigger structure changes on all updated rows, which is very resource intensive.

For tables that have multiple data definition versions, it is better to convert the table manually at a chosen time after you use In-Place Alter Table . You can then choose a time outside normal system operation when the database is not heavily used and make sure that sufficient space is available, so avoiding performance and space problems.

This procedure describes how to prevent problems with In-Place Alter Table .

Procedure

  1. Analyze the situation using the Informix oncheck tool:
  2. oncheck -pT <database id>:<owner>.<table name>

    This tells you if there are multiple data definition versions of a table. For more information, see Examples for In-Place Alter Table.

  3. Before you alter table structure always be sure to:
  1. Perform the structure alteration at the chosen time in one of the following ways:

When the table is recreated as part of a reorganization, you can specify the new structure straightaway.

Leaving content frame