Home icon

Manage long-running transactions for AWS DMS performance

Database Blog



This article explains how long-running transactions impact AWS DMS change data capture (CDC) source latency and provides monitoring solutions to detect and resolve these issues before they stall replication pipelines.

  • Long-running transactions force DMS to buffer all subsequent changes, causing CDC source latency to climb from seconds to hours
  • Monitoring scripts for Oracle, PostgreSQL, MySQL, and SQL Server detect transactions exceeding configurable thresholds (default 15 minutes)
  • Scripts use TLS/SSL encryption, publish alerts to Amazon SNS, and filter false positives from system processes
  • Ready-to-use bash scripts available on GitHub with interactive prompts, prerequisite validation, and cron scheduling support
  • Demonstration shows Oracle script detecting long-running sessions and alerting operations teams with session details including SID, username, duration, and wait events
  • Security best practices include no command-line credentials, IAM-based alerting, and AWS Secrets Manager integration for automated scheduling

Proactive monitoring of long-running transactions enables teams to avoid unnecessary replication instance scaling, reduce cutover downtime, and keep database migrations on schedule.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

Jan 31
2024
Filter transactions from users with AWS DMS from an Oracle database
Jul 9
2026
Accelerate database modernization with agentic AI in AWS DMS Schema Conversion
Jul 9
2026
Diagnose and resolve replica lag in Amazon RDS for Oracle replicas – Part 2
Jul 9
2026
Optimize replication lag for Amazon RDS for Oracle replicas using redo compression – Part 1

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.