Setting Oracle 11g Session Timeout

前端 未结 6 928
失恋的感觉
失恋的感觉 2021-01-11 15:56

After rebooting the server, the oracle connection from the Tomcat server times out every night. Prior to the reboot, the connection didn\'t timeout. Now, in the morning, the

6条回答
  •  梦谈多话
    2021-01-11 16:28

    Does the DB know the connection has dropped, or is the session still listed in v$session? That would indicate, I think, that it's being dropped by the network. Do you know how long it can stay idle before encountering the problem, and if that bears any resemblance to the TCP idle values (net.ipv4.tcp_keepalive_time, tcp_keepalive_probes and tcp_keepalive_interval from sysctl if I recall correctly)? Can't remember whether sysctl changes persist by default, but that might be something that was modified and then reset by the reboot.

    Also you might be able to reset your JDBC connections without bouncing the whole server; certainly can in WebLogic, which I realise doesn't help much, but I'm not familiar with the Tomcat equivalents.

提交回复
热议问题