I am new to hibernate. I am trying to connect to oracle using hibernate.There is no hibernate dialect for oracle 21? I have oracle 21 c installed. Heres how my cfg file looks like:
oracle.jdbc.driver.OracleDriver
singwithme20
jdbc:oracle:thin://localhost:1521:xe
system
org.hibernate.dialect.Oracle12cDialect
I am getting errors in console as follows:
java.lang.IllegalStateException: Cannot get a connection as the driver manager is not properly initialized
Exception in thread “main” org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] due to: Error calling Driver.connect() [ORA-17067: Invalid Oracle URL specified
https://docs.oracle.com/error-help/db/ora-17067/]
Caused by: org.hibernate.exception.JDBCConnectionException: Error calling Driver.connect() [ORA-17067: Invalid Oracle URL specified
https://docs.oracle.com/error-help/db/ora-17067/]
what could be that i am doing incorrectly? Pls correct me on that.
I tried using different versions for jdbc driver in pom file.
gaurav patel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.