Oracle Managed DataAccess导致ORA-12537网络会话:文件结束

时间:2016-09-15 06:56:46

标签: asp.net oracle entity-framework-5

当我使用oracle.ManagedData访问时,我无法在我的asp.net解决方案中创建Oracle edmx

下面是堆栈跟踪,请指教。我也尝试了ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file

中提供的解决方案
[NetworkException (0x30f9): ORA-12537: Network Session: End of file]
   OracleInternal.Network.ReaderStream.Read(OraBuf OB) +564
   OracleInternal.TTC.OraBufReader.GetDataFromNetwork() +378
   OracleInternal.TTC.OraBufReader.Read(Boolean bIgnoreData) +122
   OracleInternal.TTC.MarshallingEngine.UnmarshalUB1(Boolean bIgnoreData) +43
   OracleInternal.TTC.TTCProtocolNegotiation.ReadResponse() +212

[OracleException (0x80004005): ORA-12537: Network Session: End of file]
   OracleInternal.ConnectionPool.PoolManager`3.Get(ConnectionString csWithDiffOrNewPwd, Boolean bGetForApp, String affinityInstanceName, Boolean bForceMatch) +7686
   OracleInternal.ConnectionPool.OraclePoolManager.Get(ConnectionString csWithNewPassword, Boolean bGetForApp, String affinityInstanceName, Boolean bForceMatch) +1178
   OracleInternal.ConnectionPool.OracleConnectionDispenser`3.Get(ConnectionString cs, PM conPM, ConnectionString pmCS, SecureString securedPassword, SecureString securedProxyPassword) +1541
   Oracle.ManagedDataAccess.Client.OracleConnection.Open() +3739
   System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure) +44

[EntityException: The underlying provider failed on Open.]
   System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure) +203

1 个答案:

答案 0 :(得分:0)

我通过使用非托管驱动程序而不是托管驱动程序重新创建edmx来解决此问题。应用程序完美。 !使用了ODAC 12c Release 4。