Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io.debezium.connector.oracle.logminer.LogMinerStreamingChangeEventSource : Failed to start Oracle LogMiner session, retrying-->io.debezium.connector.oracle.logminer.LogMinerStreamingChangeEventSource :.java.sql.SQLException: ORA-01291: missing log file[Bug] #2615

Closed
2 tasks done
jasonhewg opened this issue Nov 3, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@jasonhewg
Copy link

Search before asking

  • I searched in the issues and found nothing similar.

Flink version

1.14.2

Flink CDC version

<flink-connector-oracle-cdc.version>2.4.1</flink-connector-oracle-cdc.version>

Database and its version

oracle19c

Minimal reproduce step

2023-11-03 13:37:44.675 WARN [debezium-oracleconnector-oracle_logminer-change-event-source-coordinator] io.debezium.connector.oracle.logminer.LogMinerStreamingChangeEventSource : Failed to start Oracle LogMiner session, retrying...
2023-11-03 13:37:45.286 ERROR[debezium-oracleconnector-oracle_logminer-change-event-source-coordinator] io.debezium.connector.oracle.logminer.LogMinerStreamingChangeEventSource : Failed to start Oracle LogMiner after '5' attempts.

java.sql.SQLException: ORA-01291: missing log file
ORA-06512: at "SYS.DBMS_LOGMNR", line 72
ORA-06512: at line 1

at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:509) ~[com.oracle.database.jdbc-ojdbc8-19.3.0.0.jar!/:19.3.0.0.0]
at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:461) ~[com.oracle.database.jdbc-ojdbc8-19.3.0.0.jar!/:19.3.0.0.0]

In addition, I clean the archive logs by executing commands from the rman tool command:

Crosscheck archivelog all;
Delete noprompt archivelog until time 'sysdate -1';

Through the above command, the archived logs were retained for one day. During the insertion, deletion, and modification of the table within one day, I also encountered the issue of losing the logs mentioned above.

May I ask how to solve this problem。

What did you expect to see?

flink cdc normal run

What did you see instead?

java.sql.SQLException: ORA-01291: missing log file
ORA-06512: at "SYS.DBMS_LOGMNR", line 72
ORA-06512: at line 1

io.debezium.connector.common.BaseSourceTask : Going to restart connector after 10 sec. after a retriable exception
2023-11-03 16:09:11.458 INFO [pool-18-thread-1] io.debezium.jdbc.JdbcConnection : Connection gracefully closed
2023-11-03 16:09:11.459 INFO [debezium-engine] io.debezium.embedded.EmbeddedEngine : Retrieable exception thrown, connector will be restarted
org.apache.kafka.connect.errors.RetriableException: An exception occurred in the change event producer. This connector will be restarted.
at io.debezium.pipeline.ErrorHandler.setProducerThrowable(ErrorHandler.java:46) ~[debezium-core-1.9.7.Final.jar!/:1.9.7.Final]

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@jasonhewg jasonhewg added the bug Something isn't working label Nov 3, 2023
@Naros
Copy link

Naros commented Nov 15, 2023

Hi @jasonhewg, there have been several changes to the Debezium Oracle connector since 1.9.7.Final, which includes several critical bugs around log management that could cause this error.

I would suggest (if its possible) to move to Debezium 2.4.1.Final or 2.5.0.Alpha2 as a baseline for Oracle to get all the fixes that should address common issues around ORA-01291.

@jasonhewg
Copy link
Author

Hi @jasonhewg, there have been several changes to the Debezium Oracle connector since 1.9.7.Final, which includes several critical bugs around log management that could cause this error.

I would suggest (if its possible) to move to Debezium 2.4.1.Final or 2.5.0.Alpha2 as a baseline for Oracle to get all the fixes that should address common issues around ORA-01291.

so:
Do you want to upgrade Flink cdc connectors. com. verica. 2.4.1 debezium. version 1.9.7. Final to 2.4.1. Final? Which version is the corresponding flink-cdc-connectors.com.ververica

@Naros
Copy link

Naros commented Nov 28, 2023

We are planning to cut a 2.4.2.Final next week as the last build in the Debezium 2.4 release stream -- once we do that I'll look at upgrading them here.

@PatrickRen
Copy link
Contributor

Closing this issue as it has been migrated to Apache Jira.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants