SMF 101-003 DB2 Accounting
    • 15 May 2024
    • 6 Minutes to read
    • Contributors
    • Dark
      Light

    SMF 101-003 DB2 Accounting

    • Dark
      Light

    Article summary

    Introduction

    CSV I239 for SMF 101 IFCID 239, including PROD section and General Package accounting section.
    SMF 101-239 was created by IBM as an overflow of the SMF 101-003, to contain additional data. They share the same header and are link by the exact same timestamp.

    Fields

    Stored in dbaData

    SMF FieldDB Column nameDescriptionUnit
    recTypeValue is always 0
    QWACBSCstartTimeBeginning store clock value
    QWACESCendTimeEnding store clock value
    SM101SIDsid
    SM101SSIdb2IdSubsystem ID
    QWHCATYPsourceTypeType of connecting system
    QWHCEUTXtrxTransaction name for the user
    QWHCAIDracfUserAuthorization ID
    QWACWLMEwlmClassMVS workload manager service class name
    QWHCCNconnectionConnection name
    QWHCPLANplanNamePlan name
    QWHCCNcicsNameIf sourceType equal 'CICS' fill with connection value
    QWHCCV
    QWHCCN
    jobName
    • If sourceType equal 'TSO' or 'DB2 CALL' or 'DB2 UTIL' fill with correlationId value
    • If sourceType equal 'IMS DLI' fill with connection value
    QWHCCVpsbNameIf sourceType equal 'IMS BMP' or 'IMS MPP' or 'IMS DLI' or 'IMS TRX' or 'IMS CONTROL' fill with correlationId value without 4 first character
    QWHCCNimsidIf sourceType equal 'IMS BMP' or 'IMS MPP' or 'IMS DLI' or 'IMS TRX' or 'IMS CONTROL' fill with 4 first character of connection value
    QWHSLUNMluNameLU name
    QWHSNIDnetIdNetwork ID
    QWHSLUUVuniqueIdUniqueness value
    QWACRINVacctReasonReason accounting is invoked
    QWACFLGSflagsFlags
    QWHSACEtaskAddressAce address dispatch unit address
    QWHCEUIDendUserIdThe end user's userID at the user's workstation
    QWHCCVcorrelationIdCorrelation ID value
    QWHCCTKN_DcorrelTokenUse if QWHCCTKN_Off
    QWACPACEcorrelAddressFor non-rollup parent record = 0. For non-rollup child agent record = QWHSACE of parent record. For parallel query rollup record = QWHSACE of parent record. For autonomous procedures rollup record = QWHS of parent record. For DDF/RRSAF rollup record = No meaning
    QWHCOPIDoperatorIdOriginal primary authorization ID
    QWHCTCXTtrustedCtxTrusted context name
    QWHCROLEroleNameRole name associated with authid
    QWHSLOCNlocalNameLocal location name
    QWHDRQNMipAddrLong name version of the distributed transaction requestor location
    QWHDSVNMcomputerNameSRVNAM parameter of DRDA EXCSAT command
    QWHDPRIDclientProductPRDID parameter of DRDA ACCRDB command
    QWHAMEMNmemberNameDb2 member name
    QWHADSGNgroupNameDb2 data sharing group name
    QWHCEUWNworkstationWorkstation name for the user
    QWHCEUTXpgmNameIf sourceType equal 'DRDA' fill with trx value or correlationId if trx is empty
    QTXARLIDrlfTableIdResource Limit Table ID
    QWHCCVpstNumberIf sourceType equal 'IMS BMP' or 'IMS MPP' or 'IMS DLI' or 'IMS TRX' or 'IMS CONTROL' fill with 4 first character of correlationId value
    QWACESC - QWACBSCrespTimeShows the duration of the accounting interval. It includes the time spent in DB2 and time spent in the front end
    db2DurationsqlDuration + spDuration + udfDuration + triggDurationsecond
    QWACASCsqlDurationAccumulated elapsed time in db2second
    QWACSPEB+ELAPspDurationThe total elapsed time spent executing SQL via stored procedure requests processed in a DB2 stored procedure WLM address spacesecond
    QWACUDEB+ELAPudfDurationThe total elapsed time spent executing SQL via UDF requests processed in a DB2 stored procedure/WLM address spacesecond
    QWACTRETtriggDurationThe accumulated elapsed time expended executing triggers on the main application execution unitsecond
    appSuCount(row.appCpuTime / 1000.0) * (16000000 / row.cpuFactor)
    db2SuCount(row.db2CpuTime / 1000.0) * (16000000 / row.cpuFactor)
    appCpuTimeappCpTime + appSeTime
    appCpTimeQWACEJST-QWACBJST + QWACSPCP + QWACUDCP + QWACTRTT
    appSeTimeQWACCLS1_ZIIP + QWACSPNF_ZIIP + QWACUDFNF_ZIIP + QWACTRTT_ZIIP
    db2CpuTimedb2CpTime + db2SeTime
    db2CpTimeQWACAJST + QWACSPTT + QWACUDTT + QWACTRTT
    db2SeTimeQWACCLS2_ZIIP + QWACSP_CLS2SE + QWACUDF_CLS2SE + QWACTRTT_ZIIP
    sqlCpuTimeQWACAJST + QWACCLS2_ZIIP
    spCpuTimeQWACSPTT + QWACSP_CLS2SE
    udfCpuTimeQWACUDTT + QWACUDF_CLS2SE
    triggCpuTimeQWACTRTT + QWACTRTT_ZIIP
    QWACPCNTtaskCountNumber of parallel/subtasks created
    QWACPKGNpackageCountNumber of packages/DBRMs for which the appropriate traces were active and therfore, package/DBRM level accounting was performed
    QWACSUCVcpuFactorThis field contains the SU conv factor
    QWHSLUCCcommitCountCommit count
    QWACCOMM2commit2Count
    QWACABRTabortCountNumber of abort requests
    QWACARNA2db2EntryCount
    QWACLRNlogRecordslog records written
    QTXADEAdeadlockCountDeadlock count
    QTXASLOClockSuspCountNumber of suspends because of lock conflicts
    QTXATIMtimeoutCountTimeout counts
    QTXALOCKlockCountLock request count
    QTXAUNLKunlockCountUnlock request count
    QWACARNEdbIoCountNumber of wait trace events processed for waits for database I/O under this thread
    QWACAWTIdbIoWaitAccumulated I/O elapsed wait time for database I/O done under this thread
    QWACARNLlatchCountNumber of wait trace events processed for waits for latch of local contention for locks
    QWACAWTL/LATCHlatchWaitAccumulated wait time due to latch contention or to local contention for locks
    QWACARNRreadIoCountNumber of wait trace events processed for waits for read I/O under another thread
    QWACAWTRreadIoWaitAccumulated wait time for read I/O that is done under a thread other than this one
    QWACARNWwriteIoCountNumber of wait trace events processed for waits for write I/O under another thread
    QWACAWTWwriteIoWaitAccumulated wait time for write I/O that is done under a thread other than this one
    QWACARNSswitchCountnumber of wait trace events processed for waits for synchronous execution unit switching for commit/abort
    QWACAWTEswitchWaitAccumulated wait time due to synchronous execution unit switch for DB2 commit, abort, or deallocation processing
    QWACARLGlogIoCountNumber of wait trace events processed for waits for log write I/O
    QWACAWLGlogIoWaitAccumulated wait time for a log write I/O
    QWACALBClobCountNumber of wait trace events processed for waits for TCP/IP LOB materialization
    QWACALBWlobWaitAccumulated wait time for TCP/IP LOB materialization
    QWACARNHpageLatchCountNumber of wait trace events processed for page latch contention
    QWACAWTPpageLatchWaitAccumulated wait time due to page latch contention
    QWACARNGsendCountNumber of wait trace events processed for sending of messages to other members in the data sharing group
    QWACAWTGsendWaitAccumulated wait time due to sending of messages to other DB2 members in the data sharing group
    QWACARNJlLockCountNumber of wait trace events processed for waits for global lock contention for parent L-locks
    QWACAWTJlLockWaitAccumulated wait time due to global contention for parent L-locks
    QWACSPNEspCountthe number of SQL entry/exit events performed by stored procedures
    QWACCASTspWaitthe total elapsed time spent waiting for an available TCB, before the stored procedure could be scheduled
    QWACUDNEudfCountthe number of SQL entry/exit events performed by user-defined functions
    QWACUDSTudfWaitthe total elapsed time spent waiting for an available TCB, before the user-defined function could be scheduled
    QXSELECTselectCountNumber of selects
    QXINSRTinsertCountNumber of inserts
    QXUPDTEupdateCountNumber of updates
    QXDELETdeleteCountNumber of deletes
    QXDESCdescribeCountNumber of describes
    QXPREPprepareCountNumber of prepares
    QXOPENopenCountNumber of opens
    QXCLOSEcloseCountNumber of closes
    QXFETCHfetchCountNumber of fetchs
    QXLOCKlockTableCountNumber of lock table
    QXCALLsqlCallCountNumber of SQL CALL statements executed
    QXRWSFETCHDfetchRowsNumber of Rows Fetched
    QXRWSINSRTDinsertRowsNumber of Rows Inserted
    QXRWSUPDTDupdatedRowsNumber of Rows Updated
    QXRWSDELETDdeleteRowsNumber of Rows Deleted
    QBACGETgetPagesNumber of get page requests issued
    QBACRIOsynchReadNumber of synchronous read I/O
    QBACSIOasyncReadNumber of asynchronous pages read by prefetch under the control of the agent
    QBACSWSpageUpdtNumber of setw issued for system pages
    QBACIMWsyncWriteNumber of immediate (synchronous) write I/O
    QBACSEQseqPrefetchNumber of seq prefetch requested
    QBACLPFlistPrefetchNumber of list prefetch requested
    QBACDPFdynPrefetchNumber of dynamic prefetch requested
    QBACNGTgetPageFailNumber of unsuccessful get page operations due to conditional get page requests
    QTXAPRECrlfReasonHow Limit was determined
    QTXASLMTrlfSuLimitLimit in SU's ASUTIME
    QTXACLMTrlfCpuLimitLimit in CPU16 microseconds
    QTXACHUSrlfCpuMaxHighest CPU used16 microseconds
    rlfSuMax(rlfCpuMax / 1000) * (16000000 / cpuFactor)
    QWACFLGSisRollupBit 1
    QWACRINVisAbnormalIf acctReason is more than 16
    actionId
    cec_name
    cec_type
    cec_model
    lpar_name

    What's Next
    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.