Hello everyone.
We are using Debezium along with Oracle. We have a periodic Oracle patching that sometimes causes an exception: “Caused by: java.lang.IllegalStateException: None of log files contains offset SCN: 12345, re-snapshot is required".
Here's what I've found about it, and from what I've learned, there's not much I can do to avoid it:
https://debezium.io/blog/2023/06/29/debezium-oracle-series-part-3/#:~:text=None%20of%20the%20log
I'm not exactly sure what happens during the patching procedure, but as mentioned in the link above, our problem could be due to a constraint violation or an explicit user or system rollback. When this happens, the SCN it was trying to find is definitely NOT in the REDO log table.
There are two options to solve this problem:
- Restarting the connectors.
- Resetting the connector to a different SCN.
I can restart the connectors and they will work, but resetting the SCN number doesn't work for some reason, although it is mentioned as a solution to this problem here:
https://debezium.io/documentation/reference/stable/connectors/oracle.html
It just gets stuck and won't load data, no errors as well, connectors run but won't load. Restarting is still possible, but it takes so long. Could you please provide any ideas I can do to avoid the initial error or get the SCN reset to work? If you need any additional info please let me know.
Thanks in advance
--
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 on the web visit https://groups.google.com/d/msgid/debezium/8ce92544-2728-4075-aa07-99ce6dcfe004n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/609f6058-8fbb-4acd-9d84-f5fda4f6cb04n%40googlegroups.com.
Yes, this bug can be the root cause of our problem and exception after patching, thanks for sharing!
But we have no errors after restarting from SCN. Actually, there is nothing in the logs either, and only when we restarted connector, logs about data loading started appearing. Could you suggest something here as well please?
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/9d2ed5fc-ceea-49a9-bb54-931a07cb620cn%40googlegroups.com.
Hi
Thanks, I will try to get them!
But it is not related to loading from a specific SCN?
We couldn't give the connector a specific SCN number, I don't think it has anything to do with patches.
After “Caused by: java.lang.IllegalStateException: None of log files contains offset SCN: 12345, re-snapshot is required” exception we tried to set one of the previous to "12345" SCNs that we found in the REDO logs to load from, but it just didn't work, we had no errors, exceptions or messages. Seems like, it cant find updates or something, I have no idea. Can you please give me some advice on where I can find something?
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/c20c612d-2560-4df4-9f0a-a5e611188c55n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/f96e7222-42ff-4038-a767-42b556a6ccccn%40googlegroups.com.