fatherazrael
fatherazrael

Reputation: 5957

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

Upvotes: 2

Views: 7712

Answers (3)

Rui Rodrigues
Rui Rodrigues

Reputation: 33

In release 1.13.2.Final the support for oracle has been added.

<dependency>
    <groupId>io.quarkus</groupId>
    <artifactId>quarkus-jdbc-oracle</artifactId>
</dependency>

quarkus.datasource.db-kind=oracle

Upvotes: 0

Igor
Igor

Reputation: 39

Here started to work with the following:


    quarkus.datasource.db-kind=other
    quarkus.hibernate-orm.dialect=org.hibernate.dialect.OracleDialect
    quarkus.datasource.jdbc.driver=oracle.jdbc.driver.OracleDriver
    quarkus.datasource.jdbc.url=jdbc:oracle:thin:@XXX.XXX.XXX.XXX:1521:XXXXX
    quarkus.datasource.username=USERNAME
    quarkus.datasource.password=PASSWORD

Upvotes: 0

loicmathieu
loicmathieu

Reputation: 5552

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

Upvotes: 2

Related Questions