Estimating the space requirements for an index
- On the BMC AMI Change Manager for Db2 Main Menu, select WORKID, and press Enter.
- On the WORKID Action Menu, type the name of the WORKID or type a wildcard pattern to display a list of work IDs. Then, select Specify Db2 definitions and press Enter.
- On the Object Specification panel, specify the name of a partitioned index (or use wildcard characters). Then, press Enter.
- On the Mixed List panel, type E in the Act column to edit an index (IX) object. Then, press Enter.
On the Index Detail panel, type S to select Space Estimation. Then, press Enter.The Index Space Estimation panel (partitioned) is displayed.
ALUS9XSE R --------------------- Index Space Estimation ---------------------
Command ===> Scroll. . PAGE
IX Name . . . . : J9QTALT.I_T01AICP1 |------ Estimated -------|
TB Name . . . . : J9QTALT.T_T01AICP | Pages : 12 |
Table Rows. . . : 0 | Space : 192 K |
Max Key Length : 17 | Levels: 2 |
Pagesize . . . : 8 |------------------------|
Unique . . . . . D (U,D,W)
Compress . . . . Y (Y,N)
Pct Compressed . 0 (0-99)
Lines 1 to 4 of 4
(PA=Propagate Attributes, PE=Propagate Est) More: >
Logical Avg Key Rows A --- Estimated ---
AC Part NbrRows Len Orig /Key PriQty SecQty U Space NbrSec
************************************ TOP **************************************
1 0 17 Proj 1 1440 720 K 48 K 0
2 0 17 Proj 1 1440 720 K 48 K 0
3 0 17 Proj 1 1440 720 K 48 K 0
4 0 17 Proj 1 1440 720 K 48 K 0
*********************************** BOTTOM ************************************- (Optional) Change the uniqueness of the index key.
Modify the following values in the lower portion of the panel for an index:
- NbrRows—the number of rows in this partition
- Avg Len—the average length of the key
- Rows/Key—the number of rows per key value
- PriQty—the primary quantity for the partition
- SecQty—the secondary quantity for the partition
- AU (Aloc Unit)—the allocation unit for the partition
- Free Page—the page increment for inserting a free page
- Pct Free—the percentage of free space to leave in each non-leaf page
- NonLf KeyLn—the average key length for a non-leaf page
Devt—the disk device type on which the partition is to be allocated
ALUSIXSE R --------------------- Index Space Estimation ---------------------
Command ===> Scroll. . PAGE
IX --------------------------------------------------------------------- ----|
TB | ALUSPASX Space Estimation Attribute Propagation | |
Tab | Command ===> | K |
Max | | |
Uni | Index Name . . : RDACRJ.IXP7A__C | ----|
| Device Type . . : 3390 | f 7
(PA | | >
L | | d ---
AC | Make any changes necessary or blank out to leave current value; | brSec
*** | changes will be applied to all parts where applicable. | *****
pa | | 0
| AVG ROWS/ ALOC | 0
| NBRROWS LEN KEY PRIQTY SECQTY UNIT | 0
| 0 4 1 -1 -1 K | 0
| | 0
| | 0
| Commands: END CANCEL | 0
*** | | *****
---------------------------------------------------------------------- Press Enter.The new space estimates for the number of pages, the total amount of space, and the number of index levels that are required are displayed.
- When you have finished reviewing the space estimates, modify the values for the index in the upper left-hand portion of the panel. The values that you can modify are described in Overview-of-space-estimation. Then, press Enter.
When you have finished updating the fields, press END until the Mixed List panel is displayed.
ALUSMXL ER --------------------------- Mixed List ---------------------------
Command ===> Scroll. . PAGE
WORKID . . . . : RDACRJ.ALTER Commands: CANCEL
Type action next to object and press Enter.
E=Edit L=Like D=Drop U=Undo
Objects 112 to 125 of 227
More: - +
Act Object-Type Objects
TB . . . . RDACRJ 'tbp1a'
FK . . . RDACRJ 'tbp1a' P1AX1
*$ IXC. . . RDACRJ IXP7A__C
IXP. . . RDACRJ IXP7A_2
UCP. . RDACRJ 'tbp1a' ' TP1A C4 1'
AL . . . RDACRJ ALP1A__C
TS . . . . . DEMOCRJ ROBBINS
TB . . . . RDACRJ JGSD004_A17_LOWC
TB . . . . RDACRJ JNMP007_BO_HEADER
TB . . . . RDACRJ JNMP029_BO_CMDTY
TS . . . . . DEMOCRJ SF1
TS . . . . . DEMOCRJ SF1X
TS . . . . . DEMOCRJ S1
TB . . . . RDACRJ TBS1A- On the Index Detail panel, press END.
- Press END until the WORKID Action Menu is displayed.Now that the space requirements for an index have been estimated, you can analyze a work ID and execute a worklist.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*