In our system which connects to Oracle DB we get this kind of error
Internal error not handled (-2).\n at System.Data.OracleClient.OracleConnection.CheckError(OciErrorHandle errorHandle, Int32 rc)
at System.Data.OracleClient.OracleCommand.Execute(OciStatementHandle statementHandle, CommandBehavior behavior, Boolean needRowid, OciRowidDescriptor& rowidDescriptor, ArrayList& resultParameterOrdinals)
at System.Data.OracleClient.OracleCommand.Execute(OciStatementHandle statementHandle, CommandBehavior behavior, ArrayList& resultParameterOrdinals)
at System.Data.OracleClient.OracleCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.OracleClient.OracleCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
Once this error occurs, then it is continuous, all the further queries even the SELECT statements fails.
The error will start from any random SELECT statement. And there's no pattern on which SQL is causing this issue.
Only possible way to come out of this is to do IISRESET.
After that the system will work normally for 2-3 days. If this error pops up again then the whole system is down again.
Note : I am yet to get the Oracle logs. Will post it when I have those.
Edit 1: We kind of narrowed down the problem. Seems connection leak from our application is the cause of the issue. I will update the post with details once we corner the issue. Thank you all.