Oracle Connector: Unable to connect: Failed to resolve Oracle database version

Skip to first unread message

prasad kagitha

Dec 19, 2021, 5:18:39 AM12/19/21
to debezium
Hi All,

I am trying to connect to Oracle database with debezium OracleConnector, but i am getting below error

"Unable to connect: Failed to resolve Oracle database version"

java.lang.RuntimeException: Failed to resolve Oracle database version
        at io.debezium.connector.common.RelationalBaseSourceConnector.validate(
        at org.apache.kafka.connect.runtime.AbstractHerder.validateConnectorConfig(
        at org.apache.kafka.connect.runtime.AbstractHerder.lambda$validateConnectorConfig$2(
        at java.util.concurrent.Executors$
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$
Caused by: java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@xxxxxx
        at java.sql.DriverManager.getConnection(
        at java.sql.DriverManager.getConnection(
        at io.debezium.jdbc.JdbcConnection.lambda$patternBasedFactory$0(
        at io.debezium.jdbc.JdbcConnection$ConnectionFactoryDecorator.connect(
        at io.debezium.jdbc.JdbcConnection.connection(
        at io.debezium.jdbc.JdbcConnection.connection(
        at io.debezium.jdbc.JdbcConnection.queryAndMap(
        at io.debezium.jdbc.JdbcConnection.queryAndMap(

I have tried placing ojdbc8.jar and also tried with ojdbc10.jar to connector libs but nothing working, i could able to connect to the database from my system with any database client but while trying to connect through connector getting issues.

**Please find my configuration using below**
    "name": "oracle-connector",
    "config": {
        "connector.class": "",
        "database.hostname": "xxx",
        "database.user": "xxx",
        "database.password": "xxx",
        "": "184054",
        "": "oracle",      
        "database.dbname": "xxx",
        "": "",
        "include.schema.changes": "true",
        "database.history.kafka.bootstrap.servers": "localhost:9092",
        "database.history.kafka.topic": "",
        "tasks.max" : "1"

Can any one help me on resolving this issue.
Reply all
Reply to author

Gunnar Morling

Dec 22, 2021, 4:30:28 AM12/22/21
to debezium
Definitely use ojdbc8 not ojdbc10. Can you share the contents (output of ls or tree) of your Oracle connector directory?


Message has been deleted

Chris Cranford

Jan 2, 2022, 7:17:26 AMJan 2
to, prasad kagitha
Hi Prasad -

First, only ojdbc8.jar is compatible so make sure you only use that one.  If it doesn't work by being put in the libs folder, could you put it next to the Oracle connector libraries to see if that helps?
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
To view this discussion on the web visit

prasad kagitha

Jan 2, 2022, 9:55:59 AMJan 2
to debezium
Hi Chris,

Thank you for your response, 

Even i have tried that option as well, and also i have place ojdbc8.jar in kafka libs as well, but still getting same error

I could see ojdbc8.jar is getting loaded to jvm classpath when i start connector, but could not understand why i am getting the error when connecting to oracle db installed in local machine only.


Jan 2, 2022, 11:56:56 PMJan 2
to debezium

just in case could you please try to look into the JAR file to verify it is valid JAR?


prasad kagitha

Jan 3, 2022, 3:28:04 AMJan 3
to debezium
Yes, I did

It has oracle.jdbc.OracleDriver

Jan 4, 2022, 1:18:10 AMJan 4
to debezium
ok, could you please post the result of tree command in Kafka directory and the plugin.path setting?



Reply all
Reply to author
0 new messages