The only agent that thinks for itself

Autonomous Monitoring with self-learning AI built-in, operating independently across your entire stack.

Unlimited Metrics & Logs
Machine learning & MCP
5% CPU, 150MB RAM
3GB disk, >1 year retention
800+ integrations, zero config
Dashboards, alerts out of the box
> Discover Netdata Agents

Centralized metrics streaming and storage

Aggregate metrics from multiple agents into centralized Parent nodes for unified monitoring across your infrastructure.

Stream from unlimited agents
Long-term data retention
High availability clustering
Data replication & backup
Scalable architecture
Enterprise-grade security
> Learn about Parents

Fully managed cloud platform

Access your monitoring data from anywhere with our SaaS platform. No infrastructure to manage, automatic updates, and global availability.

Zero infrastructure management
99.9% uptime SLA
Global data centers
Automatic updates & patches
Enterprise SSO & RBAC
SOC2 & ISO certified
> Explore Netdata Cloud

Deploy Netdata Cloud in your infrastructure

Run the full Netdata Cloud platform on-premises for complete data sovereignty and compliance with your security policies.

Complete data sovereignty
Air-gapped deployment
Custom compliance controls
Private network integration
Dedicated support team
Kubernetes & Docker support
> Learn about Cloud On-Premises

Powerful, intuitive monitoring interface

Modern, responsive UI built for real-time troubleshooting with customizable dashboards and advanced visualization capabilities.

Real-time chart updates
Customizable dashboards
Dark & light themes
Advanced filtering & search
Responsive on all devices
Collaboration features
> Explore Netdata UI

Monitor on the go

Native iOS and Android apps bring full monitoring capabilities to your mobile device with real-time alerts and notifications.

iOS & Android apps
Push notifications
Touch-optimized interface
Offline data access
Biometric authentication
Widget support
> Download apps

The future of infrastructure observability

See our strategic direction across AI-native observability, full-stack signals, operational intelligence, and enterprise platform maturity.

AI-native observability
Full-stack signal coverage
Operational intelligence
Enterprise platform maturity
Agent releases every 6 weeks
Cloud continuous delivery
> Explore Product Roadmap

Best energy efficiency

True real-time per-second

100% automated zero config

Centralized observability

Multi-year retention

High availability built-in

Zero maintenance

Always up-to-date

Enterprise security

Complete data control

Air-gap ready

Compliance certified

Millisecond responsiveness

Infinite zoom & pan

Works on any device

Native performance

Instant alerts

Monitor anywhere

AI-native observability

Continuous delivery

Open source foundation

80% Faster Incident Resolution

AI-powered troubleshooting from detection, to root cause and blast radius identification, to reporting.

True Real-Time and Simple, even at Scale

Linearly and infinitely scalable full-stack observability, that can be deployed even mid-crisis.

90% Cost Reduction, Full Fidelity

Instead of centralizing the data, Netdata distributes the code, eliminating pipelines and complexity.

See and Map Your Entire Network

Live topology, flow analytics, and SNMP device and trap monitoring — unified with your full-stack observability.

Control Without Surrender

SOC 2 Type 2 certified with every metric kept on your infrastructure.

Integrations

800+ collectors and notification channels, auto-discovered and ready out of the box.

800+ data collectors
Auto-discovery & zero config
Cloud, infra, app protocols
Notifications out of the box
> Explore integrations
Real Results
46% Cost Reduction

Reduced monitoring costs by 46% while cutting staff overhead by 67%.

— Leonardo Antunez, Codyas

Zero Pipeline

No data shipping. No central storage costs. Query at the edge.

From Our Users
"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

No Query Language

Point-and-click troubleshooting. No PromQL, no LogQL, no learning curve.

Enterprise Ready
67% Less Staff, 46% Cost Cut

Enterprise efficiency without enterprise complexity—real ROI from day one.

— Leonardo Antunez, Codyas

SOC 2 Type 2 Certified

Zero data egress. Only metadata reaches the cloud. Your metrics stay on your infrastructure.

Full Coverage
800+ Collectors

Auto-discovered and configured. No manual setup required.

Any Notification Channel

Slack, PagerDuty, Teams, email, webhooks—all built-in.

Built for the People Who Get Paged

Because 3am alerts deserve instant answers, not hour-long hunts.

Every Industry Has Rules. We Master Them.

See how healthcare, finance, and government teams cut monitoring costs 90% while staying audit-ready.

Monitor Any Technology. Configure Nothing.

Install the agent. It already knows your stack.
From Our Users
"A Rare Unicorn"

Netdata gives more than you invest in it. A rare unicorn that obeys the Pareto rule.

— Eduard Porquet Mateu, TMB Barcelona

99% Downtime Reduction

Reduced website downtime by 99% and cloud bill by 30% using Netdata alerts.

— Falkland Islands Government

Real Savings
30% Cloud Cost Reduction

Optimized resource allocation based on Netdata alerts cut cloud spending by 30%.

— Falkland Islands Government

46% Cost Cut

Reduced monitoring staff by 67% while cutting operational costs by 46%.

— Codyas

Real Coverage
"Plugin for Everything"

Netdata has agent capacity or a plugin for everything, including Windows and Kubernetes.

— Eduard Porquet Mateu, TMB Barcelona

"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

Real Speed
Troubleshooting in 30 Seconds

From 2-3 minutes to 30 seconds—instant visibility into any node issue.

— Matthew Artist, Nodecraft

20% Downtime Reduction

20% less downtime and 40% budget optimization from out-of-the-box monitoring.

— Simon Beginn, LANCOM Systems

Pay per Node. Unlimited Everything Else.

One price per node. Unlimited metrics, logs, users, and retention. No per-GB surprises.

Free tier—forever
No metric limits or caps
Retention you control
Cancel anytime
> See pricing plans

What's Your Monitoring Really Costing You?

Most teams overpay by 40-60%. Let's find out why.

Expose hidden metric charges
Calculate tool consolidation
Customers report 30-67% savings
Results in under 60 seconds
> See what you're really paying

Your Infrastructure Is Unique. Let's Talk.

Because monitoring 10 nodes is different from monitoring 10,000.

On-prem & air-gapped deployment
Volume pricing & agreements
Architecture review for your scale
Compliance & security support
> Start a conversation

Monitoring That Sells Itself

Deploy in minutes. Impress clients in hours. Earn recurring revenue for years.

30-second live demos close deals
Zero config = zero support burden
Competitive margins & deal protection
Response in 48 hours
> Apply to partner

Per-Second Metrics at Homelab Prices

Same engine, same dashboards, same ML. Just priced for tinkerers.

Community: Free forever · 5 nodes · non-commercial
Homelab: $90/yr · unlimited nodes · fair usage
> Get the Homelab Plan

$1,000 Per Referral. Unlimited Referrals.

Your colleagues get 10% off. You get 10% commission. Everyone wins.

10% of subscriptions, up to $1,000 each
Track earnings inside Netdata Cloud
PayPal/Venmo payouts in 3-4 weeks
No caps, no complexity
> Get your referral link
Cost Proof
40% Budget Optimization

"Netdata's significant positive impact" — LANCOM Systems

Calculate Your Savings

Compare vs Datadog, Grafana, Dynatrace

Savings Proof
46% Cost Reduction

"Cut costs by 46%, staff by 67%" — Codyas

30% Cloud Bill Savings

"Reduced cloud bill by 30%" — Falkland Islands Gov

Enterprise Proof
"Better Than Combined Alternatives"

"Better observability with Netdata than combining other tools." — TMB Barcelona

Real Engineers, <24h Response

DPA, SLAs, on-prem, volume pricing

Why Partners Win
Demo Live Infrastructure

One command, 30 seconds, real data—no sandbox needed

Zero Tickets, High Margins

Auto-config + per-node pricing = predictable profit

Homelab Ready
Free Video Course

8-episode Netdata tutorial by LearnLinux.tv

76k+ GitHub Stars

3rd most starred monitoring project

Worth Recommending
Product That Delivers

Customers report 40-67% cost cuts, 99% downtime reduction

Zero Risk to Your Rep

Free tier lets them try before they buy

AI Support Assistant, Available 24/7

Nedi has access to all official documentation, source code, and resources. Ask any question about Netdata—responds in your language.

Deployment & configuration
Troubleshooting & sizing
Alerts & notifications
Evidence-based answers
> Ask Nedi now

Never Fight Fires Alone

Docs, community, and expert help—pick your path to resolution.

Learn.netdata.cloud docs
Discord, Forums, GitHub
Premium support available
> Get answers now

60 Seconds to First Dashboard

One command to install. Zero config. 850+ integrations documented.

Linux, Windows, K8s, Docker
Auto-discovers your stack
> Read our documentation

76,000+ Engineers Strong

615+ contributors. 1.5M daily downloads. One mission: simplify observability.

Per-Second. 90% Cheaper. Data Stays Home.

Side-by-side comparisons: costs, real-time granularity, and data sovereignty for every major tool.

See why teams switch from Datadog, Prometheus, Grafana, and more.

> Browse all comparisons
Edge-Native Observability, Born Open Source
Per-second visibility, ML on every metric, and data that never leaves your infrastructure.
Founded in 2016
615+ contributors worldwide
Remote-first, engineering-driven
Open source first
> Read our story
Promises We Publish—and Prove
12 principles backed by open code, independent validation, and measurable outcomes.
Open source, peer-reviewed
Zero config, instant value
Data sovereignty by design
Aligned pricing, no surprises
> See all 12 principles
Edge-Native, AI-Ready, 100% Open
76k+ stars. Full ML, AI, and automation—GPLv3+, not premium add-ons.
76,000+ GitHub stars
GPLv3+ licensed forever
ML on every metric, included
Zero vendor lock-in
> Explore our open source
Build Real-Time Observability for the World
Remote-first team shipping per-second monitoring with ML on every metric.
Remote-first, fully distributed
Open source (76k+ stars)
Challenging technical problems
Your code on millions of systems
> See open roles
Meet the Team Behind Netdata
Conferences, meetups, and tradeshows where you can see Netdata in action and talk to the engineers who build it.
Live demos and deep dives
Book 1-on-1 meetings
Talks and panel sessions
Event recaps and photos
> See all events
Talk to a Netdata Human in <24 Hours
Sales, partnerships, press, or professional services—real engineers, fast answers.
Discuss your observability needs
Pricing and volume discounts
Partnership opportunities
Media and press inquiries
> Book a conversation
Your Data. Your Rules.
On-prem data, cloud control plane, transparent terms.
Trust & Scale
76,000+ GitHub Stars

One of the most popular open-source monitoring projects

SOC 2 Type 2 Certified

Enterprise-grade security and compliance

Data Sovereignty

Your metrics stay on your infrastructure

Validated
University of Amsterdam

"Most energy-efficient monitoring solution" — ICSOC 2023, peer-reviewed

ADASTEC (Autonomous Driving)

"Doesn't miss alerts—mission-critical trust for safety software"

Community Stats
615+ Contributors

Global community improving monitoring for everyone

1.5M+ Downloads/Day

Trusted by teams worldwide

GPLv3+ Licensed

Free forever, fully open source agent

Why Join?
Remote-First

Work from anywhere, async-friendly culture

Impact at Scale

Your work helps millions of systems

$ guides / oracle-database / oracle-database-enq-tx-row-lock-contention ▌

Operations Guides

Oracle 'enq: TX - row lock contention': blocking sessions and uncommitted DML

The classic symptom is partial slowness. Some transactions succeed. Some hang indefinitely. Application logs show threads stuck inside database calls. There are no ORA- errors in the alert log, CPU is low, I/O latency is normal, the instance is OPEN, and the listener responds.

When you query V$SESSION for the waiters, they are all parked on the same event: enq: TX - row lock contention. When you walk BLOCKING_SESSION up the chain, you usually land on a session whose STATUS is INACTIVE and whose wait is SQL*Net message from client. That session is sitting idle with an open, uncommitted transaction. One stuck holder, many waiters behind it.

The bottleneck is application logic that opened a transaction and never closed it. The operational first response is still the same: identify the blocker, confirm it is safe to interrupt, and decide whether to kill it.

What this means

Oracle uses row-level locking with no lock escalation. When a session modifies a row, the lock is embedded in the data block: a lock byte in the row header, a transaction ID in the block’s Interested Transaction List (ITL), and an undo entry holding the before-image. Another session that tries to modify the same row, or to read it in current mode for DML, must wait for the holder to either commit or roll back.

That wait is reported as enq: TX - row lock contention. It is a normal serialization mechanism in small doses. It becomes an incident when the holder never commits.

The wait has two common sub-modes that you must distinguish before acting:

  • Mode 6 (exclusive row lock). The waiter and the blocker want the same row. For the enqueue parameter name|mode, P1RAW ends in the lock mode 0006 (for example, TX mode 6 is 0x54580006). The fix is on the holder side: commit, roll back, or kill the session.
  • Mode 4 (share, ITL or bitmap). P1RAW ends in 0004. The sessions may be updating different rows in the same block and contending for a free ITL slot, fighting over a bitmap index entry, or inserting rows that collide on a unique constraint. Killing a session does not help; the fix is structural (INITRANS, bitmap index removal, constraint design).

The blocker is usually INACTIVE. Its current SQL_ID is frequently NULL because it finished executing and is now waiting for the client. BLOCKING_SESSION in V$SESSION is populated from the waiter’s perspective; the blocker itself does not know it is blocking anyone. In RAC, use GV$SESSION.BLOCKING_INSTANCE and BLOCKING_SESSION together, because the blocker may live on another node.

Oracle’s deadlock detector resolves true cycles in roughly three seconds by sacrificing one statement with ORA-00060. If you see long TX waits with no ORA-00060 in the alert log, you do not have a deadlock; you have a long-held lock.

Common causes

CauseWhat it looks likeFirst thing to check
Application forgot to commitOne INACTIVE blocker, many waiters, SQL*Net message from client on the holderV$SESSION.BLOCKING_SESSION chain and the holder’s STATUS
Developer tool left openBlocker is a single interactive session, often from a known user/host, idle for minutes or hoursV$SESSION.USERNAME, MACHINE, PROGRAM, LOGON_TIME
Batch job holding locks too longOne ACTIVE blocker running a large UPDATE/DELETE, waiters queue behind itV$SESSION.SQL_ID and V$SQL.SQL_TEXT of the blocker; V$TRANSACTION.USED_UBLK
ITL slot shortage (mode 4)Many sessions waiting on different rows of the same hot block; P1RAW ends in 0004V$SESSION P1/P1RAW; segment INITRANS; V$SEGMENT_STATISTICS
Unindexed foreign key (TM, related)Wait event is enq: TM - contention, not TX; fires on parent delete/updateDBA_CONSTRAINTS / DBA_IND_COLUMNS for FK columns without an index
Distributed or XA in-doubt transactionBLOCKING_SESSION is NULL, but waiters exist; blocker invisible in V$SESSIONDBA_2PC_PENDING, V$GLOBAL_BLOCKED_LOCKS

Quick checks

All of the queries below are read-only and safe to run during an incident.

-- 1. Current TX enqueue waiters, oldest first
SELECT s.SID, s.SERIAL#, s.USERNAME, s.EVENT, s.SECONDS_IN_WAIT,
       s.SQL_ID, s.BLOCKING_SESSION, s.BLOCKING_SESSION_STATUS
FROM V$SESSION s
WHERE s.EVENT LIKE 'enq: TX%' AND s.STATE = 'WAITING'
ORDER BY s.SECONDS_IN_WAIT DESC;
-- 2. Blocker / waiter pairs (built-in views, no joins needed)
SELECT * FROM DBA_WAITERS;
SELECT * FROM DBA_BLOCKERS;
-- 3. Lock detail, including the locked object and lock mode
SELECT l.SID, l.TYPE, l.LMODE, l.REQUEST, l.BLOCK,
       o.OWNER || '.' || o.OBJECT_NAME AS object_name
FROM V$LOCK l
LEFT JOIN V$LOCKED_OBJECT lo ON l.SID = lo.SESSION_ID
LEFT JOIN DBA_OBJECTS o ON lo.OBJECT_ID = o.OBJECT_ID
WHERE l.TYPE = 'TX' AND (l.BLOCK = 1 OR l.REQUEST > 0);
-- 4. The blocker itself: status, user, machine, last SQL (sql_id is often NULL on idle holders)
SELECT s.SID, s.SERIAL#, s.STATUS, s.USERNAME, s.MACHINE, s.PROGRAM,
       s.LOGON_TIME, s.EVENT, s.SECONDS_IN_WAIT,
       COALESCE(s.SQL_ID, s.PREV_SQL_ID) AS last_sql_id
FROM V$SESSION s
WHERE s.SID = &blocker_sid;
-- 5. What row is the waiter stuck on (run for one waiter SID)
SELECT o.OWNER || '.' || o.OBJECT_NAME AS object_name,
       DBMS_ROWID.ROWID_CREATE(1, s.ROW_WAIT_OBJ#, s.ROW_WAIT_FILE#,
                               s.ROW_WAIT_BLOCK#, s.ROW_WAIT_ROW#) AS locked_rowid
FROM V$SESSION s
LEFT JOIN DBA_OBJECTS o ON s.ROW_WAIT_OBJ# = o.OBJECT_ID
WHERE s.SID = &waiter_sid
  AND s.ROW_WAIT_OBJ# <> 0;
-- 6. RAC: see blockers and waiters across instances
SELECT INST_ID, SID, SERIAL#, EVENT, BLOCKING_INSTANCE, BLOCKING_SESSION
FROM GV$SESSION
WHERE EVENT LIKE 'enq: TX%' AND STATE = 'WAITING';
-- 7. Long-held exclusive TX locks (the silent holder signal)
SELECT SID, TYPE, LMODE, CTIME
FROM V$LOCK
WHERE TYPE = 'TX' AND LMODE = 6 AND CTIME > 300
ORDER BY CTIME DESC;
-- 8. Has this already hit the process/session ceiling?
SELECT RESOURCE_NAME, CURRENT_UTILIZATION, MAX_UTILIZATION, LIMIT_VALUE
FROM V$RESOURCE_LIMIT
WHERE RESOURCE_NAME IN ('sessions', 'processes');

How to diagnose it

flowchart TD
    A["Waiters on enq: TX"] --> B{"P1RAW mode?"}
    B -->|"0006 row lock"| C["Walk BLOCKING_SESSION chain"]
    B -->|"0004 ITL / bitmap"| H["Structural fix: INITRANS / index"]
    C --> D{"Blocker STATUS?"}
    D -->|"INACTIVE, idle"| E["Holder is an open transaction"]
    D -->|"ACTIVE, long DML"| F["Batch job or large TX"]
    E --> G{"Safe to interrupt?"}
    F --> G
    G -->|"Yes"| I["ALTER SYSTEM KILL SESSION"]
    G -->|"No, business-critical"| J["Wait; notify app owner"]
    I --> K["Verify waiters drain"]

Work through the cascade in this order:

  1. Confirm the symptom is TX, not TM. Run query 1. If the wait is enq: TM - contention, stop and look for an unindexed foreign key on the table being modified. TM contention has a different fix and a different blast radius.
  2. Distinguish mode 6 from mode 4. Look at P1 / P1RAW on the waiters. Mode 4 means ITL, bitmap, or unique-constraint contention; killing the holder will not help and may make it worse if the holder is a legitimate batch job. Check V$SEGMENT_STATISTICS for ITL waits on the object.
  3. Walk the blocking chain. Start from query 1, take the BLOCKING_SESSION, and re-query V$SESSION for that SID. If BLOCKING_SESSION_STATUS is VALID but BLOCKING_SESSION is NULL, suspect a distributed or XA in-doubt transaction (see the XA row in the causes table).
  4. Profile the blocker. Run query 4. If STATUS is INACTIVE and EVENT is SQL*Net message from client, the holder is an idle session with an open transaction. SQL_ID is frequently NULL on idle sessions; fall back to PREV_SQL_ID and pull the text from V$SQL.
  5. Find the SQL text. SELECT SQL_TEXT, SQL_FULLTEXT FROM V$SQL WHERE SQL_ID = :last_sql_id; This tells you whether the open transaction is an application statement, a manual tool, or a batch job.
  6. Find the locked object and row. Run query 5 against a waiter. ROW_WAIT_OBJ# of 0 means Oracle has not yet resolved the row pointer; try a different waiter or wait a moment.
  7. Measure blast radius. Run queries 7 and 8. If the blocker has more than 10 waiters, or CURRENT_UTILIZATION is approaching LIMIT_VALUE, you are inside a contention cascade that can exhaust PROCESSES and refuse new connections with ORA-00020.
  8. Decide. If the holder is an idle session or a non-critical job, killing it is the correct operational move. If it is a critical batch job, contact the application owner first and only kill if business impact justifies the rollback cost.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
enq: TX - row lock contention time waitedDominates DB time when a single holder is blocking many sessionsTX enqueue waits above 5% of DB time
V$SESSION.BLOCKING_SESSION chainsA single SID blocking many waiters is the cascade signatureOne blocker with more than 10 waiters
V$LOCK TX LMODE=6 with CTIME > 300Exclusive row lock held more than 5 minutes by an inactive sessionAny non-zero result during business hours
V$SESSION waiter SECONDS_IN_WAITTells you how long victims have been stuckAny session blocked more than 5 minutes
V$RESOURCE_LIMIT sessions/processesCascade can exhaust slots via connection-pool retryCURRENT_UTILIZATION above 85% of limit
enqueue deadlocks statisticORA-00060 indicates inconsistent lock ordering in the applicationAny sustained non-zero rate
Alert log for ORA-00060Deadlock graph shows the exact SQL and objects involvedAny new entry

Fixes

Kill the blocking session

When the holder is an idle session or a non-critical job, this is the correct first move. It rolls back the open transaction and releases every waiter immediately.

-- Disruptive: rolls back the holder's transaction.
-- Verify SID and SERIAL# from V$SESSION first.
ALTER SYSTEM KILL SESSION 'sid,serial#' IMMEDIATE;

IMMEDIATE does not make the kill faster; it tells PMON to roll back the transaction and release locks without waiting for the session to acknowledge. On RAC, add the instance: ALTER SYSTEM KILL SESSION 'sid,serial#,@inst_id'. If the session is stuck in a state PMON cannot clean up, DISCONNECT SESSION 'sid,serial#' IMMEDIATE drops the connection at the network layer and forces cleanup.

Killing resolves the symptom. It does not fix the root cause. The same application code will produce the same blocker again.

Have the application commit or roll back

If the holder is a legitimate transaction that the business needs to complete, the only correct action is to let it finish. Killing it discards its work. The root fix belongs in the application: explicit COMMIT or ROLLBACK at the end of every transactional unit, including error paths. Missing ROLLBACK in exception handlers is a frequent cause of orphaned open transactions.

Break up long batch jobs

A batch job that updates millions of rows in one transaction holds every row lock until the final commit. The structural fix is to commit in batches, on the order of thousands of rows per transaction, with a bounded transaction size. The tradeoff is restartability: if the job dies mid-way, you need a way to resume from the last committed point. Do not commit per row; that turns the bottleneck into log file sync.

Resolve ITL contention (mode 4)

If P1RAW ends in 0004 and the sessions are touching different rows in the same block, the block’s ITL is too small. Increase INITRANS and rebuild the segment:

-- Structural change; requires maintenance window.
ALTER TABLE schema.tab MOVE INITRANS 16;
ALTER INDEX schema.idx REBUILD INITRANS 16;

Oracle now allows up to 255 concurrent update transactions per data block, subject to available block space; MAXTRANS is deprecated. Existing objects can retain an earlier MAXTRANS setting, but changing it is ignored and 255 is substituted. INITRANS still controls the initially reserved allocation. On freelist-managed segments, INITRANS is the hard minimum and ITL contention is more common. If the contended object is a bitmap index, replace it with a normal B-tree where concurrency requires it.

Clear in-doubt distributed transactions

When BLOCKING_SESSION is NULL but TX waiters exist, suspect an XA branch with no session attached. Query DBA_2PC_PENDING for in-doubt transactions. RECO resolves these automatically in normal operation; when it does not, force the outcome using the LOCAL_TRAN_ID or GLOBAL_TRAN_ID from DBA_2PC_PENDING:

-- Disruptive: forces commit or rollback of an in-doubt transaction.
-- Consult MOS Doc ID 1248848.1 for the full procedure.
-- Verify the transaction ID from DBA_2PC_PENDING before running.
ROLLBACK FORCE 'local_tran_id';   -- safer when in doubt
-- or
COMMIT FORCE 'local_tran_id';

Do not force commit unless you are certain the transaction should be committed; forcing rollback is safer when in doubt. Normally RECO purges correctly resolved rows; use DBMS_TRANSACTION.PURGE_MIXED for mixed outcomes and PURGE_LOST_DB_ENTRY only for the documented lost-remote-database case.

Remove the unindexed foreign key (TM contention)

If the wait event is actually enq: TM - contention, the cause is almost always an unindexed FK on a child table being modified while the parent is updated or deleted. Add an index on the FK columns.

Prevention

  • Commit discipline. Every transaction in the application, including error paths, must end in COMMIT or ROLLBACK. Audit exception handlers specifically; missing rollback is the most common cause.
  • Idle session reaping. Set IDLE_TIME in the user profile, and configure SQLNET.EXPIRE_TIME so dead connections are detected and cleaned up. A dead client holding an open transaction is a classic cascade trigger.
  • Long-held lock alerts. Alert on V$LOCK rows with TYPE='TX', LMODE=6, CTIME > 300. This catches the idle holder before the waiters pile up.
  • Index every foreign key. Make it a code-review rule. TM contention is fully preventable.
  • Size INITRANS for hot tables. For tables with high concurrent DML on the same block, set INITRANS to 8 or higher at table creation. Rebuilding later is disruptive.
  • Use SKIP LOCKED for queue patterns. Documented from the 11g-era SQL language reference and available in later releases, SELECT ... FOR UPDATE SKIP LOCKED lets queue consumers skip locked rows instead of waiting, which removes row-lock waiting from work queues.
  • Connection pool backoff. When the pool detects blocked sessions, it should not open new connections. Retrying in a tight loop turns one slow transaction into a process exhaustion incident.

How Netdata helps

  • Per-second collection of V$SYSTEM_EVENT makes the moment TX wait time starts climbing visible immediately, rather than at the next AWR snapshot. The leading indicator is the slope of the curve, not the absolute value.
  • Correlating TX enqueue time with the session/process utilization signal from V$RESOURCE_LIMIT shows the cascade forming before ORA-00020 starts refusing connections.
  • Anomaly detection on the active-session count by wait class surfaces a sudden jump in the Application wait class (where enq: TX lives) even when the absolute count is small for the hardware.
  • A blocking-chain-depth gauge would make the difference between “one slow session” and “one holder with 50 waiters” obvious on a single chart.
  • Pairing enqueue waits with the log file sync and log file parallel write signals rules out the redo path as the cause, narrowing the diagnosis to application locking.
  • Alerting on V$LOCK rows with TYPE='TX', LMODE=6, CTIME > 300 catches the silent idle holder before users notice.

See Oracle Database monitoring with Netdata for the full metric set.

The Netdata solution

Oracle Database monitoring with Netdata

Netdata monitors Oracle Database with per-second metrics and automatic dashboards. Watch wait events, redo and archive-log activity, tablespace and undo space, and session and lock activity so the failure modes in these runbooks surface before the instance hangs.