hibernate.dialect oracle,Hibernate Dialect for Oracle 19
问题One of our database was upgraded to Oracle 19c and now my application is unable to connect to databaseI am getting the following error.HHH000400: Using dialect: org.hibernate.dialect.Oracle12cDialec
问题
One of our database was upgraded to Oracle 19c and now my application is unable to connect to database
I am getting the following error.
HHH000400: Using dialect: org.hibernate.dialect.Oracle12cDialect
HHH000342: Could not obtain connection to query metadata : Unable to determine Dialect to use [name=Oracle, majorVersion=19]; user must register resolver or explicitly set 'hibernate.dialect'
I searched for dialect for oracle 19 but could't find any .
Is there is a dialect available for oracle 19 ?
回答1:
There isn't a newer dialect than 12c, and it would be fine to use it with 19c, but there was a bug in hibernate-orm that prevents the auto detection to work, see:
https://hibernate.atlassian.net/browse/HHH-13184
https://hibernate.atlassian.net/browse/HHH-13609
It is already solved in the newer 5.4 releases, and I opened a PR for the 5.3 branch.
A workaround for now is to manually set the dialect property hibernate.dialect to org.hibernate.dialect.Oracle12cDialect.
来源:https://stackoverflow.com/questions/57715024/hibernate-dialect-for-oracle-19
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)