c# - Getting Connection lost contact even though a new connection is created -
i'm writing asp.net web application. database oracle. i've noticed if leave application open while without doing , try access database "ora-03135: connection lost contact" error. 1 reason can think of first connection timeout create fresh new connection, open it, need , "finally" close every time access database. what's more interesting after error, don't have problems more connecting database. have ideas problem might be?
are using connection pool? in case can behaviour because oracle connection pool returns "disconnected" connection. try adding validate connection=true; connection string.
Comments
Post a Comment