SORTPOOL—Sort pool size


Use the Modify Sortpool Size panel or the SORTPOOL command to specify the amount of storage needed for the sort pool. The sort pool value is used by Db2 as the maximum size of a sort area allocated when a cursor is opened for a SELECT statement that requires sorting.

Because the size of the sort pool can affect sort efficiency, you can improve performance by using SORTPOOL to allow each concurrent sort user a larger sort area.

Modify Sortpool Size panel

DDTG DBI1 Modify Sortpool Size
Command ===> _________________________________________________________________

 Command: CURRENT
Description . . . . . . . . : SORTPOOL SIZE PARAMETER

Type the new sortpool size value that you wish to change to. Then press Enter. The value can also be specified in megabytes (M), kilobytes (K) or in bytes (B), but must be a multiple of 1K.

Sortpool Parameter
Sortpool size . . . . . . . (240K-64000K or delta)

Command syntax and parameters

image2018-12-25_10-15-25.png

Value

Description

DB2ssid

Db2 subsystem ID or the name of the Db2 data sharing group to which the command applies.

opertuneID

OPERTUNE system profile name (if OPERTUNE is running as a started task) or the batch job name (if OPERTUNE is running as a batch job).

value

Sort pool size (the maximum size of a sort area allocated when a cursor is opened for a SELECT statement that requires sorting). Specify one of the following values:

  • Number of kilobytes in the range 240K–64000K* in 1K increments
  • A delta value
    Delta values are expressed numerically (+nn or -nn) or as a percentage (+nn% or -nn%). The resulting value must fall in the range 240K–64000K and be a multiple of 1K.

*This value can also be specified in bytes (B) or megabytes (M), but the value specified must be a multiple of 1K.

NORESET

The changes you request remain in effect until the Db2 subsystem is cycled.

Db2 parameter values

Field

Installation panel

CLIST parameter

ZPARM macro

ZPARM parameter

Sortpool Size

DSNTIPC

SORTPOOL

DSN6SPRM

SRTPOOL

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

OPERTUNE for DB2 13.1