Skip to main content

DB2 SQL Statistics

SQL statistic nameDescriptionDBmarlin collects?Doc link
durationDerived Field = STMT_EXEC_TIME Yes - DerivedN/A
executionsDerived Field = NUM_EXECUTIONS Yes - DerivedN/A
cpu_time_millisecondsDerived Field = TOTAL_CPU_TIME / 1000 Yes - DerivedN/A
physical_readsDerived Field = POOL_DATA_P_READS Yes - DerivedN/A
logical_readsDerived Field = POOL_DATA_L_READS Yes - DerivedN/A
logical_writesDerived Field = POOL_DATA_WRITES Yes - DerivedN/A
deadlocksThe total number of deadlocks that have occurred. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-d#r0001283
direct_read_reqsThe number of requests to perform a direct read of one or more sectors of data. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-d#r0001262
direct_readsThe number of read operations that do not use the buffer pool. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-d#r0001260
direct_read_timeThe elapsed time required to perform the direct reads. This value is given in milliseconds. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-d#r0001264
direct_write_reqsThe number of requests to perform a direct write of one or more sectors of data. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-d#r0001263
direct_writesThe number of write operations that do not use the buffer pool. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-d#r0001261
direct_write_timeThe elapsed time required to perform the direct writes. This value is reported in milliseconds. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-d#r0001265
durationCalculated field. Yes N/A
executionsCalculated field. Yes N/A
lock_escalsThe number of times that locks have been escalated from several row locks to a table lock. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-l#r0001284
lock_escals_globalNumber of lock escalations on a global lock due to global lock memory usage. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-l#r0056238
lock_escals_locklistNumber of lock escalations due to local lock memory usage reaching the limit. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-l#r0056237
lock_escals_maxlocksNumber of lock escalations due to local lock memory usage reaching the limit Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-l#r0056236
lock_timeoutsThe number of times that a request to lock an object timed out instead of being granted. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-l#r0001290
lock_timeouts_globalNumber of lock timeouts where the application holding the lock was on a remote member. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-l#r0056235
lock_waitsThe total number of times that applications or connections waited for locks. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-l#r0001293
lock_waits_globalNumber of lock waits due to the application holding the lock being on a remote member. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-l#r0056233
lock_wait_timeThe total elapsed time spent waiting for locks.  in milliseconds. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-l#r0001294
lock_wait_time_globalTime spent on global lock waits in milliseconds. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-l#r0056234
log_buffer_wait_timeThe amount of time an agent spends waiting for space in the log buffer in milliseconds. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-l#r0054044
log_disk_waits_totalThe number of times agents have to wait for log data to write to disk. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-l#r0054046
log_disk_wait_timeThe amount of time an agent spends waiting for log records to be flushed to disk in milliseconds. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-l#r0054045
logical_readsCalculated field. Yes Not in IBM docs
logical_writesCalculated field. Yes Not in IBM docs
num _executionsCalculated field. Yes Not in IBM docs
num_exec_with_errorThe number of executions of this statement that resulted in an error. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-n#r_num_exec_with_error
num_exec_with_metricsThe number of times that this SQL statement section has been executed with the metrics collected. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-n#r0054155
num_exec_with_warningThe number of executions of this statement that resulted in a warning. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-n#r_num_exec_with_warning
physical_readsCalculated field. Yes Not in IBM docs
pool_data_l_readsNumber of data pages synchronously read from the buffer pool (logical). Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-p#r0001235
pool_data_p_readsNumber of data pages synchronously and asynchronously read from the table space containers (physical). Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-p#r0001236
pool_data_writesThe number of times a buffer pool data page was physically written to disk. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-p#r0001237
pool_read_timeIndicates the total amount of time spent in milliseconds reading in data and index pages from the table space containers (physical). Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-p#r0001241
pool_write_timeCumulative elapsed time for each asynchronous write to complete. This value is reported in milliseconds. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-p#r0001242
query_cost_estimateEstimated cost for a query, as determined by the SQL compiler. This value is reported in timerons. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-q#r0001357
rows_deletedThis is the number of row deletions attempted. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-r#r0001312
rows_insertedThe number of row insertions attempted. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-r#r0001313
rows_modifiedThe number of rows inserted, updated, or deleted. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-r#r0051568
rows_readThe number of rows read from the table. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-r#r0001317
rows_returnedThe number of rows returned. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-r#r0051569
rows_updatedThis is the number of row updates attempted. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-r#r0001314
stmt_exec_timeThe total time spent executing this statement by all agents on this member. The value is given in milliseconds. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-s#r0056454
total_act_timeThe total amount of time spent executing activities. This value is given in milliseconds. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-t#r0054077
total_act_wait_timeTotal time spent waiting within the database server, while processing an activity. The value is given in milliseconds. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-t#r0054078
total_cpu_timeThe total amount of CPU time used while within the database system. Represents total of both user and system CPU time. This value is in microseconds. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-t#r0054057
total_section_sortsTotal number of sorts performed during section execution, which is the execution of the compiled query plan generated by the SQL statement that was issued by the client application. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-t#r0054149
total_section_sort_timeTotal amount of time spent performing sorts while executing a section of a compiled query plan in milliseconds. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-t#r0054154
total_sortsThe total number of sorts that have been executed. Yes https://www.ibm.com/docs/en/db2/11.5?topic=reference-t#r0001219

Search online​

If this article doesn't have the information you need you can try searching online. Remember, you can contribute suggestions to this page.