Oracle.DataAccess.Client.OracleException ORA-03135: connection lost contact

前端 未结 2 608
一个人的身影
一个人的身影 2020-12-13 22:36

I have a .Net service that connects to an Oracle database on every request. It works fine at the beginning, but after some number of requests I start getting:



        
2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-13 22:51

    I have seen this happen too; try turning off connection pooling with "Pooling=false" in the connection string. I have a theory that idle connections in the pool expire, but ODP.NET does not realize that they have expired, and then when your app grabs one and tries to do something you get that exception.

提交回复
热议问题