# Dialect issue on 6.4.0.Final and Oracle

**URL:** <https://discourse.hibernate.org/t/dialect-issue-on-6-4-0-final-and-oracle/8655>\
**Category:** Hibernate ORM\
**Created:** [December 5, 2023, 2:44pm UTC](https://discourse.hibernate.org/t/dialect-issue-on-6-4-0-final-and-oracle/8655 "2023-12-05T14:44:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![devron](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@devron](https://discourse.hibernate.org/u/devron)\
**Post date:** [December 5, 2023, 2:44pm UTC](https://discourse.hibernate.org/t/dialect-issue-on-6-4-0-final-and-oracle/8655/1 "2023-12-05T14:44:35Z")

</div>

Getting the following error on 6.4.0.Final, which we do not get on 6.4.0.CR1:

```auto
"Unable to determine Dialect for Oracle 19.1 (please set 'hibernate.dialect' or register a Dialect resolver)"

```

This is in a spring boot 3+ project, but it only appears when we change the version to the .Final. For now we’ve reverted to CR1. We’d prefer not to have to explicitly set this, as it complicates switching between databases.

---

<div class="post-metadata">

**Author:** ![beikov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/beikov/32/258_2.png) [@beikov](https://discourse.hibernate.org/u/beikov)\
**Post date:** [December 6, 2023, 1:36pm UTC](https://discourse.hibernate.org/t/dialect-issue-on-6-4-0-final-and-oracle/8655/2 "2023-12-06T13:36:21Z")

</div>

What database are you using? The dialect is matched based on the `java.sql.DatabaseMetaData#getDatabaseProductName()`, which according to `org.hibernate.dialect.Database#ORACLE`, requires that the result equals `Oracle`. We can fix that, but I don’t really see how version 6.4.0.Final would be different from CR1 in this respect. Maybe it’s related to [[HHH-17424] - Hibernate JIRA](https://hibernate.atlassian.net/browse/HHH-17424), but please try to create a reproducer with our test case template ([hibernate-test-case-templates/orm/hibernate-orm-6/src/test/java/org/hibernate/bugs/JPAUnitTestCase.java at main · hibernate/hibernate-test-case-templates · GitHub](https://github.com/hibernate/hibernate-test-case-templates/blob/master/orm/hibernate-orm-6/src/test/java/org/hibernate/bugs/JPAUnitTestCase.java)) and if you are able to reproduce the issue, create a bug ticket in our issue tracker([https://hibernate.atlassian.net](https://hibernate.atlassian.net)) and attach that reproducer.
