Release 10.1A: OpenEdge Data Management:
Database Administration

> ## Add and reorder AI extents

> Additional AI extents are needed when you are unable to execute an extent switch because all extents are full, and you are unable to empty the next extent in the sequence for reuse. If an extent switch cannot be performed, your database shuts down, or stalls if you have enabled after-image stall.

> To add additional AI extents, create a `.st` file to define the additional extents, and use PROSTRCT ADD or PROSTRCT ADDONLINE to update your database. See the "OpenEdge Structure Add utility" section for details. When you add additional AI extents, they are added to the end of the extent list. PROSTRCT REORDER AI will move the new, empty AI extents, so that they immediately follow the busy extent. Reordering your extents is necessary if the next extent in the switch sequence is not empty. This condition can occur if Fathom Replication has any of your full extents locked. The Fathom™ Replication lock blocks the user from using RFUTIL to empty the extent so that it may be reused. For more information on Fathom Replication, see Progress Fathom Replication User’s Guide .

> Use the following command to reorder your AI extents:

>     prostrct reorder ai db-name

> Caution: PROSTRCT REORDER AI will rename AI extent files, changing the `.a` `n` extension. Area numbers for the reordered extents will also change. It is critical that you use PROSTRCT LIST to generate an accurate`.st` file for the database after running this utility. For more information on generating a new `.st` file, see the "PROSTRCT LIST qualifier" section.

> The following example illustrates the effect of PRSTRUCT REORDER AI on your AI extents.

> Figure 7–3 shows the original AI extent configuration. The database will shutdown when `A1` fills because it cannot switch to the full `A2` extent.

> Figure 7–3: Original database AI extents

> The user must first add additional AI extents as Figure 7–4 shows.

> Figure 7–4: Database AI Extents after PROSTRCT ADD of two new extents

> Adding the new extents is not sufficient to prevent a database shutdown. The database will still shutdown when `A1` is filled because after-imaging still can not switch to the full `A2` extent. Use PROSTRCT REORDER AI to arrange the extents. Figure 7–5 shows the result of the PROSTRCT REORDER AI:

> Figure 7–5: Database AI extents after PROSTRCT REORDER AI

> After the reorder is complete, after-imaging can successfully switch extents. The result of the reordering is that the empty extents are moved to immediately follow the busy extent. Their area number and file name extensions have been altered to reflect the move. The physical location and size of the file on disk has not been altered.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095