Configuring the database (Db2)
Configure the IBM®
Db2® database to
avoid time-out issues.
Procedure
- Open the database console running as a Db2 administrator.
-
Set the tuning parameters by using the following command:
db2 update db cfg for <DATABASE_NAME> using <VARIABLE> <VALUE>For example,
db2 update db cfg for <DATABASE_NAME> using SELF_TUNING_MEM ONThe following table describes the tuning parameter settings to use. Values shown in brackets are informational when the parameter is set to
AUTOMATIC. This enables Db2 to control the parameter and reflects the current setting.Table 1. Database tuning parameters Parameter Description Value (default) SELF_TUNING_MEMSelf tuning memory ON DATABASE_MEMORYSize of database shared memory (4KB) AUTOMATIC (2683751) DB_MEM_THRESHDatabase memory threshold 10 LOCKLISTMax storage for lock list (4KB) AUTOMATIC (82212) MAXLOCKSPercentage of lock lists per application AUTOMATIC (97) PCKCACHESZPackage cache size (4KB) AUTOMATIC (419456) SHEAPTHRES_SHRSort heap threshold for shared sorts (4KB) AUTOMATIC (63309) SORTHEAPSort list heap (4KB) AUTOMATIC (12661) DBHEAPDatabase heap (4KB) AUTOMATIC (5405) CATALOGCACHE_SZCatalog cache size (4KB) 4000 LOGBUFSZLog buffer size (4KB) 2560 UTIL_HEAP_SZUtilities heap size (4KB) 306174 STMTHEAPSQL statement heap (4KB) AUTOMATIC (51200) APPLHEAPSZDefault application heap (4KB) AUTOMATIC (51200) APPL_MEMORYApplication Memory Size (4KB) AUTOMATIC (40000) STAT_HEAP_SZStatistics heap size (4KB) AUTOMATIC (4384) DLCHKTIMEInterval for checking deadlock (ms) 10000 LOCKTIMEOUTLock timeout (sec) -1 CHNGPGS_THRESHChanged pages threshold 80 NUM_IOCLEANERSNumber of asynchronous page cleaners AUTOMATIC (10) NUM_IOSERVERSNumber of I/O servers AUTOMATIC (44) SEQDETECTSequential detect flag YES DFT_PREFETCH_SZDefault prefetch size (pages) AUTOMATIC TRACKMODTrack modified pages NO Default number of containers 1 DFT_EXTENT_SZDefault tablespace extent size (pages) 32 MAXAPPLSMax number of active applications 300 AVG_APPLSAverage number of active applications 10 MAXFILOPMax DB files open per application 61440 - Save your changes.
-
Validate the changes using the following command:
db2 get db cfg for <DATABASE_NAME>