Installation step 9: Record Db2 data to SMF (optional)
When you install Db2, you can specify whether Db2 statistical, accounting, and audit trace data is to be collected.
Procedure
To specify the data that is to be collected:
What to do next
During Db2 execution,
you can use the SMF SET or SS command to alter the SMF parameters.
For example, you can record the statistics trace class 1 IFCIDs 0001,
0002, and 0202 (SMF record type 100); accounting trace class 1 IFCIDs
0003 and 0239 (SMF record type 101); and all other Db2 trace
records (SMF record type 102) to SMF. To record this information,
issue the following command:
SYS(TYPE(100:102))
For Db2 to
pass data to SMF, you must allocate an adequate supply of SMF buffers.
The default buffer settings are probably insufficient.You can specify SMF buffering on the VSAM BUFSP parameter of the Access Method Services DEFINE CLUSTER statement. Do not use the default settings if Db2 data is sent to SMF. Specify CISZ(4096) and BUFSP(81920) on the DEFINE CLUSTER statement for each SMF VSAM data set. These values for CISZ and BUFSP are the minimum requirement for Db2. You might need higher values for CISZ and BUFSP, depending on the requirements of all your z/OS subsystems.
You can also code an IEFU84 SMF exit routine to process the records that are produced.