简体   繁体   中英

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 .

进入休眠配置文件,您可以使用以下代码。我认为它将解决您的问题

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

您有两个不同的配置文件,因此可以对两个配置文件使用配置

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM