I have strange problem. I can't run my spring
app when I change connection from MySQL to Oracle (19c).
When I am using MySQL everything is fine. My app is really simple, its doing nothing, it is sample empty project for test connection.
Here is my application.properties (MySQL):
spring.datasource.url=jdbc:mysql://localhost:3306/fckOracle
spring.datasource.username = root
spring.datasource.password = student
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
and part of pom.xml (MySQL),
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
Here is my application.properties (Oracle 19c)
spring.datasource.url=jdbc:oracle:thin:@localhost:1521:orcl
spring.datasource.username=ALBERT
spring.datasource.password=student
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
and part of pom.xml (Oracle 19c)
<dependency>
<groupId>com.oracle.ojdbc</groupId>
<artifactId>ojdbc8</artifactId>
</dependency>
Okay, when I am trying to run my app with oracle connection, compiler can't load dialect. Program is frozen and localhost:8080 doesn't work, and here is my console:
I have tried a lot of dialects Oracle12cDialect, Oracle10gDialect..., result is always the same, with one exception! When I change the dialect to this:
spring.jpa.database-platform=org.hibernate.dialect.HSQLDialect
My app starts, but with error:
java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
localhost8080 is working, but I cant do any operation on my oracle database.
Anyone have idea how to fix this oracle configuration?