ORA-03113: end-of-file on communication channel after long inactivity in ASP.Net app

后端 未结 7 701
名媛妹妹
名媛妹妹 2020-12-08 10:37

I\'ve got a load-balanced (not using Session state) ASP.Net 2.0 app on IIS5 running back to a single Oracle 10g server, using version 10.1.0.301 of the ODAC/ODP.Net drivers.

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-08 11:12

    Add Validate Connection=true to your connection string.

    Look at this blog to find more about.

    DETAILS: After OracleConnection.Close() the real database connection does not terminate. The connection object is put back in connection pool. The use of connection pool is implicit by ODP.NET. If you create a new connection you get one of the pool. If this connection is "yet open" the OracleConnection.Open() method does not really creates a new connection. If the real connection is broken (for any reason) you get a failure on first select, update, insert or delete.

    With Validate Connection the real connection is validated in Open() method.

提交回复
热议问题