# How to enable/verify z/OS DB2 lock/deadlock visibility + CICS transaction‑level services (UPxx) in Dynatrace?

**URL:** <https://community.dynatrace.com/t/how-to-enable-verify-z-os-db2-lock-deadlock-visibility-cics-transaction-level-services-upxx-in-dynatrace/55178>\
**Category:** Extensions\
**Tags:** databases, dynatrace-managed, infrastructure-operations, logs\
**Created:** [March 4, 2026, 1:05pm UTC](https://community.dynatrace.com/t/how-to-enable-verify-z-os-db2-lock-deadlock-visibility-cics-transaction-level-services-upxx-in-dynatrace/55178 "2026-03-04T13:05:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arunshetty2281](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@arunshetty2281](https://community.dynatrace.com/u/arunshetty2281)\
**Post date:** [March 4, 2026, 1:05pm UTC](https://community.dynatrace.com/t/how-to-enable-verify-z-os-db2-lock-deadlock-visibility-cics-transaction-level-services-upxx-in-dynatrace/55178/1 "2026-03-04T13:05:29Z")

</div>

Hi Dynatrace Community,

I’m investigating a mainframe performance issue where two CICS transactions (referred to here as **UP08** and **UP29** ) contended on the same DB2 table, resulting in high lock‑waits and deadlocks. I’m looking for best‑practice guidance on configuring Dynatrace to surface **DB2 contention metrics** and **transaction‑level CICS services** for alerting and correlation.

**What I’ve observed so far:**

- Under **Settings ▸ Preferences ▸ OneAgent features** , several z/OS CICS/DB2 options appear available but disabled.
- I’d like to confirm the correct steps for enabling **DB2 metrics collection (Opt‑in)** and ensuring **CICS transactions** appear as distinct services.

**Questions:**

1. Is the **z/OS DB2 Metrics Collection (Opt‑in)** feature still the correct switch to expose DB2 metrics such as deadlocks, timeouts, and lock‑waits in Data Explorer?
  - Docs referenced: _Db2 Monitoring on z/OS_ [[docs.dynatrace.com]](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/installation-and-operation/zos/operation/cics-ims-monitoring)

2. For clearer CICS transaction visibility, is it recommended to enable **“Create CICS services based on transaction IDs”** so each transaction (e.g., UPxx) becomes its own service for baselines and anomaly detection?
  - Docs referenced: _Customize CICS and IMS monitoring_ [[docs.dynatrace.com]](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/installation-and-operation/zos)

3. To analyse log‑based contention patterns (e.g., “DEADLOCK”, “LOCK WAIT”) using DQL in Notebooks, is enabling **z/OS log ingestion** via the built‑in rules the appropriate approach?
  - Docs referenced: _Monitor z/OS logs_ [[docs.dynatrace.com]](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/installation-and-operation/zos/monitoring/monitor-cics-file-access)

4. Once metrics become available, are there recommended alert thresholds for:
  - DB2 deadlock rate
  - DB2 lock‑wait %
  - p95 response time for key CICS transactions  
(Looking for commonly used defaults or tuning guidance.)

**Environment notes:**

- No RUM/frontend involved — analysis is focused on mainframe backend and DB2 behaviour.
- Permissions are restricted, so I can request enablement but cannot toggle features directly.

**Goal:**  
To establish early, reliable detection of DB2 contention and improve correlation between CICS transaction behaviour and DB2 performance indicators.

Any best‑practice advice, examples, or tuning recommendations would be greatly appreciated. Thanks!
