SMF 100-002D DB2 Statistics
    • 04 Mar 2024
    • 8 Minutes to read
    • Contributors
    • Dark
      Light

    SMF 100-002D DB2 Statistics

    • Dark
      Light

    Article summary

    Introduction

    DB2 statistics will be collected from SMF type 100. In this type of record, it doesn’t really matter the SMF subtype of the SMF record because DB2 uses another specification type to distinguish different SMF specializations.

    In DB2 there is an identification named IFCID (Instrumentation Facility Component Identifier) each one with different data and purpose.

    The statistics trace reports information about how much the Db2 system services and database services are used.

    You can use the information that the statistics trace provides to plan Db2 capacity or to tune the entire set of active Db2 programs.

    If you specify YES for the SMF STATISTICS entry in panel DSNTIPN, the statistics trace uses classes 1, 3, 4, 5, and 6 as the defaults. If the statistics trace is started using the START TRACE command, the statistics trace uses class 1 as the default.

    The following table describes the Db2 statistics trace classes.

    If you specify YES for the SMFSTAT subsystem parameter, the statistics trace starts automatically when you start Db2, and sends the default classes (classes 1, 3, 4, 5, and 6) statistics data to SMF. SMF records statistics data in both SMF type 100 and 102 records. IFCIDs 0001, 0002, 0202, 0225, 0230, and 0369 are of SMF type 100. All other IFCIDs in statistics trace classes are of SMF type 102.

    When you specify CLASS(7) or IFCID(365) in a START TRACE or MODIFY TRACE command, Db2 writes IFCID 0365 records. These records are written to the specified destination of the statistics trace for remote locations that communicate with the subsystem. Statistics are generated only for those locations that have activity since the record was generated. The location statistics are written each time that the STATIME interval elapses. Statistics can be written for as many as 95 remote locations.

    Db2 also writes statistics about all DRDA locations with the other default statistics trace data to a single SMF location named DRDA REMOTE LOCS, whenever other default statistics are written.

    Statistics trace classesThe following table shows the IFCIDs that are activated for each statistics trace class.Table 1. Classes for Db2 statistics traceClassDescription of classActivated IFCIDs1Information about system services, database statistics, statistics for the database services address space (ssnmDBM1), and information about the system parameters that were in effect when the trace was started. This default class is also activated when you omit the CLASS keyword from the START TRACE command when you start the statistics trace.0001, 0002, 0105, 0106, 0202, 02252Installation-defined statistics record01523Deadlock, lock escalation, group buffer pool, data set extension information, and indications of long-running uncommitted reads, and active log space shortages.0172, 0196, 0250, 0258, 0261, 0262, 0313, 0330, 03374Db2 exceptional conditions.0173, 0191-0195, 0203-0210, 0235, 0236, 0238, 0267, 02685Db2 data sharing statistics record.02306Storage statistics for the Db2 subsystem.02257DRDA location statistics.03658Data set I/O statistics.01999Aggregated CPU and wait time statistics by connection type.036910 - 29Reserved. 30 - 32Available for local use.

    Intervals for collecting Db2 statistics trace records
    Db2 collects statistics trace records for the following IFCIDs at the interval specified by the STATIME and SYNCVAL subsystem parameters. For more information, see STATISTICS TIME field (STATIME subsystem parameter) and

    STATISTICS SYNC field (SYNCVAL subsystem parameter)

    0105 (Db2 performance trace)
    0106 (system parameters)
    0199 (data set statistics)
    0365 (remote location statistics)
    0402 (monitor profile warnings or exceptions)
    Db2 collects statistics trace records for other IFCIDs at fixed one-minute intervals.

    CSV I002D for SMF 100 IFCID 002, which includes PROD section, Service Controller stats, Locking stats, EDM Pool stats.

    Fields

    Stored in dbsi002d

    SMF FieldDB Column nameDescriptionUnit
    DBSHD_RTYrecord_typeValue is always I002D
    DBSHD_SIDsidSID
    DBSHD_DTTMwrite_datetimeDate/Time written into SMF buffer
    DBSHD_SSIDssidSubsystem ID
    DBSQWH_QWHSLOCNlocal_location_nameLocal location name
    DBSQWH_QWHSNIDluwid_network_idLUWID Network ID
    DBSQWH_QWHSLUNMluwid_lunameLUWID LUNAME
    DBSQWH_QWHSLUUVluwid_uniquenLUWID UNIQUEN
    DBSQWH_QWHSLUCCluwid_commitLUWID COMMIT
    DBSQWH_QWHSACEace_addressACE address
    DBSQWH_QWHCAIDauthorization_idAuthorization ID
    DBSQWH_QWHCCVcorrelation_idCorrelation ID
    DBSQWH_QWHCPLANplan_namePlan name
    DBSQWH_QWHCOPIDoriginal_operator_idOriginal operator ID
    DBSQWH_QWHCATYPconnection_typeConnection type
    DBSQWH_QWHCCNconnection_nameConnection name
    DBSQWH_QWHCEUIDenduser_idEnduser USER-ID
    DBSQWH_QWHCEUTXenduser_transactionEnduser transaction
    DBSQWH_QWHCEUWNenduser_workstationEnduser workstation
    DBSQWH_QWHCTCXTtrusted_contextTrusted context
    DBSQWH_QWHCROLErole_nameRole name
    DBSQWH_QWHCCTKNcorrelation_tokenCorrelation token
    DBSQWH_QWHDRQNMrequester_locationRequester location
    DBSQWH_QWHDSVNMserver_name_parameterSRVNAM parameter
    DBSQWH_QWHDPRIDproduct_id_parameterProduct ID parameter
    DBSQWH_QWHAMEMNdb2_member_nameDB2 member name
    DBSQWH_QWHADSGNdb2_group_nameDB2 group name
    DBSQWH_QWHUCPUcpu_time_ziip_and_cpCPU time ZIIP+CP
    DBSQWH_QWHUSEcpu_time_ziipCPU time ZIIP
    DBS002D_QTALLOCAallocation_attemptsAllocation attempts
    DBS002D_QTALLOCallocation_succeededSuccessful allocations
    DBS002D_QTABINDAautomatic_bind_attemptsAutomatic bind attempts
    DBS002D_QTABINDautomatic_bind_succeededSuccessful automatic binds
    DBS002D_QTINVRIDinvalid_resources_idsInvalid resource-IDs
    DBS002D_QTBINDAbind_add_sub_commandsBind (ADD) sub-commands
    DBS002D_QTBINDRbind_replace_sub_commandsBind (REPLACE) sub-commands
    DBS002D_QTTESTBbind_test_no_plan_idTest binds (no Plan-ID)
    DBS002D_QTPLNBDplans_boundPlans successfully bound
    DBS002D_QTREBINDrebind_sub_commandsRebind subcommands
    DBS002D_QTRBINDArebind_plan_attemptsAttempts to rebind a plan
    DBS002D_QTPLNRBDplans_reboundPlans rebound
    DBS002D_QTFREEfree_sub_commandsFree subcommands
    DBS002D_QTFREEAfree_plan_attemptsAttempts to free a plan
    DBS002D_QTPLNFRDfreed_plansPlans freed
    DBS002D_QTAUCHKtotal_authorization_checksNumber of authorization checks
    DBS002D_QTAUSUCtotal_successful_authorization_checksNumber of successful authorization checks
    DBS002D_QTDSOPNcurrent_datasets_openedNumber of datasets currently open
    DBS002D_QTMAXDSmax_datasets_concurrent_openedMaximum number of datasets opened concurrently
    DBS002D_QTAUCCHsuccessful_authorization_checks_plansNumber of successful authorization checks for plans using a plan cache or public authorization check
    DBS002D_QTAUPUBsuccessful_authorization_checks_plans_publicNumber of successful authorization checks for plans execute authority held by public
    DBS002D_QTMAXPBmax_not_in_use_datasetsMaximum not in-use datasets
    DBS002D_QTPACAUTsuccessful_authorization_checks_packagesNumber of successful authorization checks for packages using the package authorization cache includes public authorization checks
    DBS002D_QTPACPUBsuccessful_authorization_checks_packages_publicNumber of successful authorization checks for package execute authority held by public
    DBS002D_QTPACNOTpackage_authorization_checks_not_cacheNumber of package authorization checks that could not make use of the package authorization cache
    DBS002D_QTREOPNdatasets_not_in_use_to_in_useNumber of times that not in use open datasets became in-use
    DBS002D_QTPACOW1db2_overwrite_authid_packageNumber of times DB2 overwrote an authorization ID in the package authorization cache
    DBS002D_QTPACOW2db2_overwrite_packageNumber of times DB2 overwrote a package entry in the package authorization cache
    DBS002D_QTDSDRNdatasets_not_in_use_to_closeNumber of not in-use datasets closed due to DXMAX/DD limit
    DBS002D_QTPCCTdatasets_rw_to_roNumber of infrequently updated datasets that are converted from R/W to R/O state
    DBS002D_QTSLWDDdatasets_not_in_use_and_not_closedNumber of datasets that are not in-use but are not closed
    DBS002D_QTBINDPAbind_add_sub_package_subcommandsBind (ADD) package subcommands
    DBS002D_QTBINDPRbind_rep_sub_package_subcommandsBind (REP) package subcommands
    DBS002D_QTPKGBDpackages_boundNumber of package bounds
    DBS002D_QTRBINDPrebind_package_subcommandsRebind package subcommands
    DBS002D_QTRBNDPArebind_package_attemptsNumber of attempts to rebin a package
    DBS002D_QTPKGRBDpackage_reboundNumber of package rebounds
    DBS002D_QTFREEPfree_package_subcommandsFree package subcommands
    DBS002D_QTFREEAPfree_package_attemptsNumber of attempts to free a package
    DBS002D_QTPKGFRDpackages_freedNumber of packages freed
    DBS002D_QTAUTOBAautobind_package_attemptsNumber of attempts to autobind a package
    DBS002D_QTPKABNDpackages_autoboundNumber of packages autobound
    DBS002D_QTPKALLAallocate_package_attemptsNumber of attempts to allocate a package
    DBS002D_QTPKALLpackages_allocatedNumber of packages allocated
    DBS002D_QTRACAUTsuccessful_authorization_checks_routines_publicNumber of successful authorization checks for routines using the routine authorization cache includes public authorization checks
    DBS002D_QTRACPUBsuccessful_authorization_checks_routinesNumber of successful authorization checks for routines execute authority held by public
    DBS002D_QTRACNOTroutine_authorization_checks_not_cacheNumber of routine authorization checks that could not make use of the routine authorization cache
    DBS002D_QTRACOW1db2_overwrite_authid_routineNumber of times DB2 overwrote an authorization ID in the routine authorization cache
    DBS002D_QTRACOW2db2_overwrite_authid_routine_entryNumber of times DB2 overwrote a routine entry in the routine authorization cache
    DBS002D_QTRACNACdb2_cant_addNumber of times DB2 was not able to add an entry to the routine authorization cache
    DBS002D_QTXADEAdeadlock_countNumber of deadlock
    DBS002D_QTXASLOCsuspendsNumber of suspends because of lock conflicts
    DBS002D_QTXATIMtimeout_countsNumber of timeout
    DBS002D_QTXALESlock_escal_shared_countsNumber of lock escal shared
    DBS002D_QTXALEXlock_escal_exclusive_countsNumber of lock escal exclusive
    DBS002D_QTXARLIDresource_limit_table_idResource limit table ID
    DBS002D_QTXAPREClimit_type
    1. Specific Authorization ID
    2. Specific Authorization ID
    3. Specific Plan name
    4. Blank Authorization ID and Plan name
    5. Install no entry
    6. Install I/O error
    7. Infinite limit user has
    8. Specific Authorization ID
    9. Specific Authorization ID
    10. Specific Authorization ID
    11. Authorization ID running
    12. Specific package
    13. Any Authorization ID
    14. Any Authorization ID
    15. Any Authorization ID, package
    DBS002D_QTXASLMTlimit_sus_asutimeLimit in SU's ASU time
    DBS002D_QTXACLMTlimit_cpuCPU limit16 microsecond
    DBS002D_QTXACHUShighest_cpu_usedHighest CPU used16 microsecond
    DBS002D_QTXASLATsuspend_count_latch_conflictNumber of suspend latch conflict
    DBS002D_QTXASOTHsuspend_count_other_conflictNumber of suspend other conflict
    DBS002D_QTXALOCKlock_request_countNumber of lock request
    DBS002D_QTXAUNLKunlock_request_countNumber of unlock request
    DBS002D_QTXAQRYquery_request_countNumber of query request
    DBS002D_QTXACHGchange_request_countNumber of change request
    DBS002D_QTXAIRLMother_irlm_request_countNumber of other IRLM request
    DBS002D_QTXACLNOclaim_requestsNumber of claim request
    DBS002D_QTXACLUNclaim_requests_unsusccessfulNumber of unsuccessful claim request
    DBS002D_QTXADRNOdrain_requestsNumber of drain request
    DBS002D_QTXADRUNdrain_request_successfulNumber of unsuccessful drain request
    DBS002D_QISEFAILfail_pool_fullNumber of fail do to pool full
    DBS002D_QISECTGrequest_ct_sectionsNumber of request for CT sections
    DBS002D_QISECTLload_ct_section_dasdNumber of load CT sections from DASD
    DBS002D_QISESTMTstmts_edm_poolNumber of STMTS in EDM pool
    DBS002D_QISEDBDGrequests_dbdNumber of requests for DBD
    DBS002D_QISEDBDLloading_dbd_dasdNumber of loading DBD from DASD
    DBS002D_QISEKTGrequest_pt_sectionsNumber of requests for PT sections
    DBS002D_QISEKTLload_pt_sections_dasdNumber of load PT sections from DASD
    DBS002D_QISEDSIinserts_dyn_cacheNumber of inserts for DYN cache
    DBS002D_QISEDSGrequests_dyn_cacheNumber of requests for DYN cache
    DBS002D_QISEDBDpages_used_dbdNumber of pages used for DBD
    DBS002D_QISEDFALfail_dbd_pool_fullNumber of fail due to DBD pool full
    DBS002D_QISEDPGEpages_dbd_poolNumber of pages in DBD pool
    DBS002D_QISEDFREfree_pg_dbd_free_chainNumber of free PG in DBD free chain
    DBS002D_QISEDYNPpgs_used_stmt_poolNumber of PGs used in STMT pool
    DBS002D_QISECFALfail_stmt_pool_fullNumber of fail due to STMT pool full
    DBS002D_QISECPGEpgs_stmt_poolNumber of PGs in STMT pool
    DBS002D_QISECFREfree_pg_stmt_free_chainNumber of free PG in STMT free chain
    DBS002D_QISESKCTpages_used_skctNumber of pages used for SKCT
    DBS002D_QISESKPTpages_used_skptNumber of pages used for SKPT
    DBS002D_QISEKFALfail_stmt_skel_pool_fullNumber of fail due to STMT skeleton pool full
    DBS002D_QISEKPGEpages_skel_edm_poolNumber of pages in skeleton EDM pool
    DBS002D_QISEKFREfree_pg_skel_edm_pool_freeNumber of free PG in skeleton EDM pool free cache
    DBS002D_QISECTApages_used_ct_above_barNumber of pages used in CT above bar
    DBS002D_QISEKTApages_used_pt_above_barNumber of pages used in PT above bar
    DBS002D_QISESFALfail_stmt_abv_pool_fullNumber of fail due to STLT above pool full
    DBS002D_QISESPGEpages_stmt_abv_edm_poolNumber of pages in STMT abobe EDM pool
    DBS002D_QISESFREfree_pg_stmt_abv_edm_pool_freeNumber of free PG in STMT above EDM pool
    DBS002D_QISEKNFMcached_not_found_record_locatedNumber of cached not-found record located
    DBS002D_QISEKNFAnot_found_record_added_to_cacheNumber of not-found record added to cache
    DBS002D_QISEKNFRnot_found_record_removed_from_cacheNumber of not-found record removed from cache
    DBS002D_QISEKSPGshareable_static_sql_statement_requestNumber of shareable static SQL statement request
    DBS002D_QISEKLRUtotal_stealable_skel_pagesNumber of stealable skeleton pages
    DBS002D_QISEDLRUtotal_stealable_dbd_pagesNumber of stealable DBD pages
    DBS002D_QISESQCBstorage_allocated_plan_btbStorage allocated to plan BTB
    DBS002D_QISESQKBstorage_allocated_package_btbStorage allocated to package BTB
    DBS002D_QISESQCAstorage_allocated_plan_atbStorage allocated to plan ATB
    DBS002D_QISESQKAstorage_allocated_package_atbStorage allocated to package BTB
    DBS002D_QISEKSPA8total_storage_allocated_shareableTotal storage allocated to shareable

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.