12c连接丢失了几次

时间:2018-11-20 08:53:01

标签: .net oracle

将Oracle升级到12c后,我的exe在一段时间后开始崩溃。它可以连接并成功完成数据库作业,然后突然停止。我搜索了google和此站点,但通常来说,这些问题与创建连接有关,而我的问题是一段时间后终止连接。

事件日志:

Application: MyRunner.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Net.Sockets.SocketException
   at System.Net.Sockets.Socket.Receive(Byte[], Int32, Int32, System.Net.Sockets.SocketFlags)
   at OracleInternal.Network.ReaderStream.Read(OracleInternal.Network.OraBuf)

Exception Info: OracleInternal.Network.NetworkException
   at OracleInternal.Network.ReaderStream.Read(OracleInternal.Network.OraBuf)
   at OracleInternal.TTC.OraBufReader.GetDataFromNetwork()
   at OracleInternal.TTC.OraBufReader.Read(Boolean)
   at OracleInternal.TTC.TTCExecuteSql.ReceiveExecuteResponse(OracleInternal.TTC.Accessors.Accessor[] ByRef, OracleInternal.TTC.Accessors.Accessor[], Boolean, OracleInternal.Common.SQLMetaData ByRef, OracleInternal.Common.SqlStatementType, Int64, Int32, Int32 ByRef, Int64 ByRef, Int32, Int32, Int64[], Boolean ByRef, OracleInternal.ServiceObjects.DataUnmarshaller ByRef, MarshalBindParameterValueHelper ByRef, Boolean, Boolean ByRef)

Exception Info: Oracle.ManagedDataAccess.Client.OracleException
   at Oracle.ManagedDataAccess.Client.OracleException.HandleError(OracleInternal.Common.OracleTraceLevel, OracleInternal.Common.OracleTraceTag, System.Exception)
   at OracleInternal.TTC.TTCExecuteSql.ReceiveExecuteResponse(OracleInternal.TTC.Accessors.Accessor[] ByRef, OracleInternal.TTC.Accessors.Accessor[], Boolean, OracleInternal.Common.SQLMetaData ByRef, OracleInternal.Common.SqlStatementType, Int64, Int32, Int32 ByRef, Int64 ByRef, Int32, Int32, Int64[], Boolean ByRef, OracleInternal.ServiceObjects.DataUnmarshaller ByRef, MarshalBindParameterValueHelper ByRef, Boolean, Boolean ByRef)
   at OracleInternal.ServiceObjects.OracleCommandImpl.ExecuteNonQuery(System.String, Oracle.ManagedDataAccess.Client.OracleParameterCollection, System.Data.CommandType, OracleInternal.ServiceObjects.OracleConnectionImpl, Int32, Int32, OracleInternal.ServiceObjects.OracleDependencyImpl, Int64[] ByRef, Oracle.ManagedDataAccess.Client.OracleParameterCollection ByRef, Boolean ByRef, Boolean)
   at Oracle.ManagedDataAccess.Client.OracleCommand.ExecuteNonQuery()

一段时间后如何阻止我的exe崩溃?

0 个答案:

没有答案