Arun
Arun

Reputation: 2572

How to disable auto reconnection to oracle DB?

Im using hibernate to connect to a oracle database in my application. When the password for the oracle DB is changed, and when the application keeps hitting the DB for connection with the expired password, the DB gets locked after 3 failed tries. Is there a way to disable reconnecting to the DB automatically from the application? like how we use for MySql autoReconnect=true.

Upvotes: 0

Views: 583

Answers (2)

Mohammod Hossain
Mohammod Hossain

Reputation: 4114

You have two different config file so you can use configuration for both config file

Upvotes: 0

Mohammod Hossain
Mohammod Hossain

Reputation: 4114

Into hibernate configuration file you can use following code .I think it will solve your problem

<property name="connection.autoReconnect"> false</property>

Upvotes: 1

Related Questions