title: Hibernate takes so much time to load on application run
body: <p>Hibernate is getting stuck when i run my application using ddl-auto 'update' or 'validate'</p>
  
  <p>I have a local Oracle DataBase with a user (TEST) running on port 1521.</p>
  
  <p>On the Spring application I have this on my application yml config file:</p>
  
  <pre><code>spring:
    jpa:
      show-sql: true
    devtools:
      add-properties: true
    datasource:
      jdbcUrl: 'jdbc:oracle:thin:@localhost:1521:test'
      username: 'TEST'
      password: 'Testing123'
      driverClassName: 'oracle.jdbc.OracleDriver'
      hibernate:
        ddl-auto: "update"
        dialect: 'org.hibernate.dialect.Oracle10gDialect'
  </code></pre>
  
  <p>When I run the application it gets stuck on these lines:</p>
  
  <pre><code>2019-07-19 13:30:39.043  INFO 74584 [  restartedMain] o.h.Version                              : HHH000412: Hibernate Core {5.3.10.Final}
  2019-07-19 13:30:39.045  INFO 74584 [  restartedMain] o.h.c.Environment                        : HHH000206: hibernate.properties not found
  2019-07-19 13:30:39.235  INFO 74584 [  restartedMain] o.h.a.c.r.j.JavaReflectionManager        : HCANN000001: Hibernate Commons Annotations {5.0.4.Final}
  2019-07-19 13:30:39.475  INFO 74584 [  restartedMain] c.z.h.HikariDataSource                   : Test-H2DBPool - Starting...
  2019-07-19 13:30:40.750  INFO 74584 [  restartedMain] c.z.h.HikariDataSource                   : Test-H2DBPool - Start completed.
  2019-07-19 13:30:40.769  INFO 74584 [  restartedMain] o.h.d.Dialect                            : HHH000400: Using dialect: org.hibernate.dialect.Oracle10gDialect
  </code></pre>
  
  <p>If I change the hibernate ddl-auto to 'create-drop' it works perfect and it doesn't get stuck.</p>
  
  <p>I tried to debug the application and I've tried to get some logs, but nothing is showing and I don't know what I could do. With 'create-drop' i get the SQL logs without problem.</p>
  
  <p>Edit:</p>
  
  <p>After waiting 40 minutes with the application running it has been executed and running well. </p>
  
  <p>If I use the user SYS as SYSDBA when I run the application, Hibernate loads in 40 seconds more or less. Why with another user it takes so much time to load?</p>