DB2 tables and index: CIUDB2

Calculation of the space required for the DB2® tablespace and DB2 index for DB2 data.

To calculate the space, in KB, to allocate for the DB2 tablespace and the DB2 index required for DB2 data, you need to estimate the total number of rows.

This number is calculated from the following values; see Values required for each CICS® region.
  • NUM_DB2_PROG
  • AVG_DB2
  • PROG_TRAN_RATIO
  • NUM_REGION_D
Calculate the number of rows for the DB2 table as follows:
NUM_ROWS = (NUM_DB2_PROG * AVG_DB2 * 
            PROG_TRAN_RATIO * NUM_REGION_D)

Use the value calculated for NUM_ROWS and the values for ROW_SIZE and PERCENT_FREE in Table 1 to calculate the PRIQTY and SECQTY as described in Figure 1 for the DB2 tablespace.

Table 1. Worksheet for DB2 tablespace
Tablespace Row_Size Percent_Free PRIQTY SECQTY
CIUDB2D 189 15    
Indexes        
XIDB2D1 133 20    

Reference Reference

Feedback


Timestamp icon Last updated: Friday, 8 February 2013


http://pic.dhe.ibm.com/infocenter/cicsts/v5r1/topic//ciuugc00392.html