You can use the space manager feature of Db2 Admin Tool to estimate the space requirements for
an index space. For example, if you plan to add a significant amount of data to a table, you
might want to determine how this additional will impact the space that is needed for an
index.
About this task
The space
management features of estimating the space requirements for an index space and estimating
the number of extents are available as REST APIs. See Provided REST APIs.
Procedure
To estimate the space requirements for an index space:
Tip: If you are viewing an
index on the Indexes (ADBADB25C21X)
panel or a partition on the
Index Parts (ADB21XP)
panel, you can specify the
SE line command to navigate directly to the space estimator and
then start with step 3.
On the DB2 Administration Menu (ADB2)
panel, specify option
SM, and press Enter.
On the Space Manager (ADB2M)
panel, specify option
3 and optionally an index name, and press Enter.
On the DB2 Index Space Estimator
(ADB2MEX) panel specify information
about the index space in the fields in the Input values section,
and press Enter:
After you press Enter, the panel is refreshed. Based on the input values that
you entered, the Index Space Estimator provides information about the estimated space that
is required by the index space and suggests the amount of space to allocate for this index
space. This information is displayed at the bottom of the panel:
For more information about each field, see the panel help.
Optional:
To see the estimated number of
extents, specify the EXTENTS command and press Enter.
Note: The EXTENTS command is available only after input values are specified, and you
press Enter.
On the resulting pop-up window, you can override the
PRIQTY and SECQTY field values (in KB) to
see how the number of extents changes: