cgunes
cgunes

Reputation: 11

hibernate needs oracle client

I am not using Maven. hibernate 5.2, spring framework 4.3.1 and jdk 1.8, tomcat server 7, liferay 4.3.4. Hibernate connect to Oracle12C 64 bit server with defination in hibernate.properties file.

Do I need also to install Oracle Client 12c 64 bit to Windows Server 2012 that war file is working there?

Upvotes: 0

Views: 494

Answers (3)

Andres
Andres

Reputation: 10717

No, you don't. Having the driver jars in the classpath is enough.

You can download the drivers from here:

http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html

Upvotes: 0

Narendra Pandey
Narendra Pandey

Reputation: 436

Do the below -

1) check hibernate.cgf.xml(or your hibernate config file) & confirm if they are correct -

hibernate.connection.url
hibernate.connection.username
hibernate.connection.password
hibernate.dialect
hibernate.connection.driver_class

2) check for the oracle jar file in your lib folder.Like for Jboss it needs to be added in its module folder.(Not sure with tomcat server)

Upvotes: 0

Chetan Hirapara
Chetan Hirapara

Reputation: 694

Hibernate can work with any client. You just have to add oracle driver into hibernate.cfg file.

Add Oracle jar in lib. It will work with any db.

Upvotes: 1

Related Questions