We have a problem in our C# project using PetaPoco micro-orm. Our Oracle database is on another machine and if we bring that machine down for maintenance or fault we got this error in C# PetaPoco:
Exception="Connection request timed out
at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode,
OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object
src, String procedure, Boolean bCheck, Int32 isRecoverable,
OracleLogicalTransaction m_OracleLogicalTransaction)
at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode,
OracleConnection conn, IntPtr opsErrCtx, Object src, OracleLogicalTransaction
m_oracleLogicalTransaction)
at Oracle.DataAccess.Client.OracleConnection.Open()
This is OK, but when the database came back up we still got the same error when trying to open the database: Exception="Connection request timed out...
I tried to set Max Pool Size to a low number (eg. 3) and try to open multiple connections without closing them to replicate the problem. Unfortunately, I got a different error from this experiment: Pooled Connection request timed out
This happens when the database PC is down overnight. Testing with SQLDeveloper the connection to the database works.
Any advice? Thanks