Search code examples
hibernatedatasourcequarkus

How to configure Quarkus with Oracle Database after importing quarkus-hibernate-orm?


What is driver name to be given in quarkus application?

quarkus.datasource.ergoint.driver=org.xxx.xxx.Driver

If it does not provide native support then how can we fix this adding dependency in maven project?

Note: On official website nothing mentioned related to Oracle -> https://quarkus.io/guides/datasource#multiple-datasources


Solution

  • For the moment, there is no Oracle specific extension inside Quarkus, but there is an open issue for it you can +1 on it : https://github.com/quarkusio/quarkus/issues/1658

    If you need to use Oracle database, you can do it the same way you did for othe framework: add the dependency inside your pom.xml (easy now that Oracle provides them in Maven central) and configure it inside the application.properties

    In your case it should be

    quarkus.datasource.ergoint.driver=oracle.jdbc.driver.OracleDriver
    

    If you need to deploy your application as a native image, you will need some work to make the Oracle driver works, you can find some information here: https://github.com/oracle/graal/issues/1748