Use
You can use SAPDBA to extend an existing dbspace in your Informix database, because the dbspace is full or soon will be. Adding a chunk extends a dbspace. For more information about checking how full your dbspaces are, see
Listing Dbspaces with SAPDBA.For more information, see
Extension of a Dbspace.Prerequisites
Procedure
SAPDBA displays further fields for you to specify the size and location of the new primary chunk. If you are adding a chunk to a mirrored dbspace, SAPDBA also displays fields for the location of the mirror chunk. The size of the mirror chunk is the same as the primary chunk.
The minimum size is 1000 KB and the maximum is 2 GB. SAPDBA checks that the size you enter is a multiple of the page size on your machine, usually either 2 or 4 KB. The size you enter is also the threshold for the display in the dialog boxes for location of primary chunk and location of mirror chunk.
a. Choose Select gap (UNIX) or Select device (NT).
SAPDBA displays a dialog box showing the Available Gaps (UNIX) or disk drives (NT) on your system. The entries in the dialog box are the same as on
Listing Devices with SAPDBA but only the free space is shown.Only devices with free space equal to or greater than the Size of the chunk you entered in the previous step are displayed. Therefore, if you specified a large chunk size, it is possible that no gaps or disk drives are displayed.
b. Select a suitable gap (UNIX) or disk drive (NT).
SAPDBA fills the fields specifying the location of the primary chunk, using the values you selected.
Result
SAPDBA adds the chunk. For a mirrored dbspace, SAPDBA adds both primary and mirror chunks.
SAPDBA displays a confirmation message. If the chunk could not be added, SAPDBA displays an error message including any further information available.
You can check the results by looking in the
dbspace.log file, which you can find in the directory $INFORMIXDIR/sapreorg (UNIX) or %INFORMIXDIR%\sapreorg (NT). For more information, see SAPDBA Files, Directories, and Reports. Here is an example of the entry that SAPDBA writes to this file:
DBSPACE EXTENSION: | |||
Date |
Dbspace |
Size [KB] |
Offset [KB] |
11.Dec.98, 13:37:10 |
PSAPBTAB |
1000 |
2090016 |
Primary Path: /informix/CX5/sapdata/physdev1/data1 | |||
See also:
Dropping a Chunk with SAPDBA