--
You received this message because you are subscribed to the Google Groups "debezium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debezium+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/4fae1065-ead8-4811-9d91-2564f53e46fen%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/3211befd-77c2-4d0d-ab93-76753411ba04%40gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/CAAMG8XZ76ZxeteAPh7tUX55j9VrPzukkkhvmmis86qYLnBisoQ%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/ef147fb8-ab3c-40e9-87f0-2d4c502f39ea%40gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/CAAMG8XZN%3D9PYOcW0MHgoUnm1p4qiGeXsqr-Nzh9H-K849-A8cQ%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/01fcd90a-c548-4e93-91b5-4845ee346968%40gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/CAAMG8Xb6-a7v%3DGfeU1di5_1n7PUUWb8%2B--2eC8QbA-CGTy7zfg%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/abb9bf87-459b-4829-a4cb-84292a8cc01c%40gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/CAAMG8Xbrz3sZRj2AMQcybjb2hKB1Dn21qFBaezhQptsPrnfPiA%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/6b6c578a-1786-4312-9102-4e4b17b025e3%40gmail.com.
So right now the connector looks to see if within a 20 second window does the SCN grow by 1 million. By reducing the time window and increasing the gap, you reduce the frequency.
As I think this often raises more questions/concerns than being helpful to the community, I've logged DBZ-9672 and intend to likely remove the behavior entirely in Debezium 3.4.
Thanks,
-cc
To view this discussion visit https://groups.google.com/d/msgid/debezium/CAAMG8Xa1BMKeAKEJxAX3T99HRHZ7An_wAh3n0aJ%3D3cmc%3D32j0Q%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/0969c716-ce80-46a2-afe7-f63bb4c61eab%40gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/38e4b5fa-b051-4adf-8ce9-584e99e0d89cn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/38e4b5fa-b051-4adf-8ce9-584e99e0d89cn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/CAAMG8Xau9d2Ap-3ODRA%2Bbri%2B%3D19GreJPrrij%3DYRGHpG_aXhqMA%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/CAAMG8Xan3zpJmkx3zpL7MGLGviVURu2m%3D4GaK4P7_DwOonBg%3DA%40mail.gmail.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/CAAMG8Xaz0QqpgPSvjCNjhZ0Ak6KUuAGDPkWDX01CgChd2xEZyA%40mail.gmail.com.
Hi Chris,
We exported the CSV as per the given tool where it comes around 3.1G size, later for better analysis we imported into one of the test MySQL instance where we noticed the stuck SCN 9423036857229 not exists, attached details for reference.
Due to this its stuck, it never moved ahead and waiting for the transaction to complete ? If that's the case how can we overcome such scenario. please suggest.
Also please let us know if you need any other additional details for analysis.
"Offset SCN 9423036857229 has not changed in 25 mining session iterations. This indicates long running transaction(s) are active. Commit SCNs {1=9423127090737, 2=9423127088242}."
To view this discussion visit https://groups.google.com/d/msgid/debezium/0e4bc93e-2b72-4c84-82d0-243fc928eb65n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/86f3e854-30fd-4edf-835b-1fe049b142bdn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/4e3788c5-3154-4577-9ce5-b90aa1b99596n%40googlegroups.com.
mysql> SELECT XID, SCN, START_SCN, COMMIT_SCN, ROLLBACK, STATUS, START_TIMESTAMP, COMMIT_TIMESTAMP, operation FROM oracle_changes WHERE SCN=9423036857230;
+------------------+---------------+-----------+------------+----------+--------+---------------------+---------------------+-----------+
| XID | SCN | START_SCN | COMMIT_SCN | ROLLBACK | STATUS | START_TIMESTAMP | COMMIT_TIMESTAMP | operation |
+------------------+---------------+-----------+------------+----------+--------+---------------------+---------------------+-----------+
| 13001f00913c2200 | 9423036857230 | 0 | 0 | 0 | 0 | 0000-00-00 00:00:00 | 0000-00-00 00:00:00 | INTERNAL |
| 13001f00913c2200 | 9423036857230 | 0 | 0 | 0 | 0 | 0000-00-00 00:00:00 | 0000-00-00 00:00:00 | UPDATE |
| 70000a0007950600 | 9423036857230 | 0 | 0 | 0 | 0 | 0000-00-00 00:00:00 | 0000-00-00 00:00:00 | UPDATE |
| 70000a0007950600 | 9423036857230 | 0 | 0 | 0 | 0 | 0000-00-00 00:00:00 | 0000-00-00 00:00:00 | UPDATE |
| 64001a00b24d0500 | 9423036857230 | 0 | 0 | 0 | 0 | 0000-00-00 00:00:00 | 0000-00-00 00:00:00 | START |
| 64001a00b24d0500 | 9423036857230 | 0 | 0 | 0 | 0 | 0000-00-00 00:00:00 | 0000-00-00 00:00:00 | INSERT |
| 64001a00b24d0500 | 9423036857230 | 0 | 0 | 0 | 0 | 0000-00-00 00:00:00 | 0000-00-00 00:00:00 | INSERT |
+------------------+---------------+-----------+------------+----------+--------+---------------------+---------------------+-----------+
7 rows in set (1.66 sec)
mysql> SELECT XID, SCN, START_SCN, COMMIT_SCN, ROLLBACK, STATUS, START_TIMESTAMP, COMMIT_TIMESTAMP, operation FROM oracle_changes WHERE START_SCN=9423036857230;
Empty set (1.65 sec)
mysql> SELECT XID, SCN, START_SCN, COMMIT_SCN, ROLLBACK, STATUS, START_TIMESTAMP, COMMIT_TIMESTAMP, operation FROM oracle_changes WHERE SCN=9423036857229;
Empty set (1.69 sec)
mysql> SELECT XID, SCN, START_SCN, COMMIT_SCN, ROLLBACK, STATUS, START_TIMESTAMP, COMMIT_TIMESTAMP, operation FROM oracle_changes WHERE START_SCN=9423036857229;
Empty set (1.65 sec)
mysql>
To view this discussion visit https://groups.google.com/d/msgid/debezium/6c45e5cc-61a5-4d86-8432-04900870fd12n%40googlegroups.com.
Hi Chris,
Thank you for the details, Just a note this is Oracle 19c CDB !
We almost have the params already except log.mining.sleep.time.* & query.fetch.size and below is the connector config. Kindly Note: Onboarded 500+ tables. 1st connector - 480 tables and table size is small, 2nd Connector - 15 tables which has huge LOBs and rest all 3 connectors has not more than 3-5 tables which are either BIG in size or some tables don't have PK/Unique key.
To answer your question, if you see the below logs. To process 32M SCNs btwn 9423036857229 & 9423037474443 it took atleast 10hrs and need to check 6 unique archivelog and redolog allocated with 1G. Also no commits were found (Verified this info in MySQL DB for the XIDs “13001f00913c2200, 70000a0007950600 , 64001a00b24d0500 with SCN 9423036857230).
Can you please assist the next steps.
Offset SCN 9423036857229 has not changed in 25 mining session iterations. This indicates long running transaction(s) are active. Commit SCNs {1=9423062374267, 2=9423062373495}."
select inst_id, thread#, sequence#, first_change#, first_time,next_change#,next_time,completion_time from gv$archived_log
where dest_id=1 and first_change#>=9423036857229
and next_change#<=9423069174443 order by first_change# ;
INST_ID THREAD# SEQUENCE# FIRST_CHANGE# FIRST_TIME NEXT_CHANGE# NEXT_TIME COMPLETION_TIME
---------- ---------- ---------- --------------- -------------------- --------------- -------------------- --------------------
2 1 43921 9423037957169 01 DEC 2025 12:44:57 9423049206943 01 DEC 2025 13:14:58 01 DEC 2025 13:14:59
1 1 43921 9423037957169 01 DEC 2025 12:44:57 9423049206943 01 DEC 2025 13:14:58 01 DEC 2025 13:14:59
2 2 38771 9423037968932 01 DEC 2025 12:44:59 9423049226816 01 DEC 2025 13:15:00 01 DEC 2025 13:15:00
1 2 38771 9423037968932 01 DEC 2025 12:44:59 9423049226816 01 DEC 2025 13:15:00 01 DEC 2025 13:15:00
1 1 43922 9423049206943 01 DEC 2025 13:14:58 9423060091763 01 DEC 2025 13:44:56 01 DEC 2025 13:44:58
2 1 43922 9423049206943 01 DEC 2025 13:14:58 9423060091763 01 DEC 2025 13:44:56 01 DEC 2025 13:44:58
2 2 38772 9423049226816 01 DEC 2025 13:15:00 9423060101162 01 DEC 2025 13:44:58 01 DEC 2025 13:44:58
1 2 38772 9423049226816 01 DEC 2025 13:15:00 9423060101162 01 DEC 2025 13:44:58 01 DEC 2025 13:44:58
1 1 43923 9423060091763 01 DEC 2025 13:44:56 9423068040157 01 DEC 2025 14:14:57 01 DEC 2025 14:14:59
2 1 43923 9423060091763 01 DEC 2025 13:44:56 9423068040157 01 DEC 2025 14:14:57 01 DEC 2025 14:14:59
1 2 38773 9423060101162 01 DEC 2025 13:44:58 9423068040313 01 DEC 2025 14:14:59 01 DEC 2025 14:15:00
2 2 38773 9423060101162 01 DEC 2025 13:44:58 9423068040313 01 DEC 2025 14:14:59 01 DEC 2025 14:15:00
2025-12-01T12:46:12.662021-08:00
LOGMINER: Summary for session 2164108289, OS id 374401
LOGMINER: StartScn:
9423036857229 (0x00000891f8c3bb8d)
LOGMINER: EndScn: 9423037474443 (0x00000891f8cd268b)
LOGMINER: HighConsumedScn: 0
LOGMINER: PSR flags: 0x0
LOGMINER: Session Flags: 0x4000441
LOGMINER: Session Flags2: 0x0
LOGMINER: Read buffers: 4
LOGMINER: Region Queue size: 256
LOGMINER: Redo Queue size: 4096
LOGMINER: Memory Size = 15M, HWM 14M, LWM 13M, 90%
LOGMINER: Memory Release Limit: 0M
LOGMINER: Max Decomp Region Memory: 1M
LOGMINER: Transaction Queue Size: 1024
2025-12-01T22:48:04.878580-08:00
LOGMINER: Summary for session 2164177921, OS id 374401
LOGMINER: StartScn:
9423036857229 (0x00000891f8c3bb8d)
LOGMINER: EndScn: 9423069174443 (0x00000891fab0daab)
LOGMINER: HighConsumedScn: 0
LOGMINER: PSR flags: 0x0
LOGMINER: Session Flags: 0x4000441
LOGMINER: Session Flags2: 0x400
LOGMINER: Read buffers: 4
LOGMINER: Region Queue size: 256
LOGMINER: Redo Queue size: 4096
LOGMINER: Memory Size = 15M, HWM 14M, LWM 13M, 90%
LOGMINER: Memory Release Limit: 0M
LOGMINER: Max Decomp Region Memory: 1M
LOGMINER: Transaction Queue Size: 1024
2025-12-01T22:48:04.942578-08:00
Connector Info:
#Debezium Engine/Queing Settings
max.batch.size: 8192
max.queue.size: 65536
max.queue.size.in.bytes: 536870912 #512MB
log.mining.query.filter.mode: in
topic.prefix: DBNAME
topic.creation.enable: true
topic.creation.default.replication.factor: -1
topic.creation.default.partitions: -1
topic.creation.default.retention.ms: 1209600000
schema.include.list: APPNAME,DBZUSER
table.include.list:
APPNAME.TABLE1,APPNAME.TABLE2,DBZUSER.HEARTBEAT,DBZUSER.SIGNAL
log.mining.batch.size.default: 60000
log.mining.batch.size.max: 1000000
log.mining.batch.size.min: 10000
log.mining.scn.gap.detection.gap.size.min: 1000000
# 1 million SCNs
log.mining.scn.gap.detection.time.interval.max.ms:
10000 # 10 seconds
#Special character
field.name.adjustment.mode: avro
#BLOB, RAW
binary.handling.mode: base64
To view this discussion visit https://groups.google.com/d/msgid/debezium/392f7dcc-638b-4310-aa6d-1edfadd90907n%40googlegroups.com.
Yes no commit/rollback observed with the LogMiner data which we captured for those 32M SCNs for the transactions associated with the SCN 9423036857230, also took 10hrs to process this. Even to monitor the performance we stopped the other connectors and currently left with only 2 connectors but still that takes huge latency to process 60M SCN atleast 6-10hrs which I observed randomly.
Honestly we don’t have a control on those long running transactions. Also we do have a Goldengate running on the same database where we don’t see issues. I agree that Debezium waits for a transaction to commit/rollback for all transactions associated with the SCN however Goldengate doesn’t so is there any way to optimize or achieve similar performance or that’s the limitation with Debezium. Please clarify.
To view this discussion visit https://groups.google.com/d/msgid/debezium/7452560d-024e-47c2-bf25-c9e978fec7f6n%40googlegroups.com.
Hi Vinoth -
--
You received this message because you are subscribed to the Google Groups "debezium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debezium+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/debezium/CAAMG8XZUVg%3Drq1CdDhwaG51b%2BNtAtb%2Bw4-y8_uk2S%2BPb%3DNfrOQ%40mail.gmail.com.
Wanted to check how OpenLog Replicator (OpenSource) would handle this use case, especially with long-running transactions. Would it behave more like XStream, processing SCNs as transactions are committed or would it face similar limitations as LogMiner, waiting for transactions to complete?
Additionally, it would be very helpful if you could share your experience using OpenLog Replicator for the Oracle connector in production scenarios.
To view this discussion visit https://groups.google.com/d/msgid/debezium/9660957d-8c1b-4cc0-858b-99b13659d3e4n%40googlegroups.com.