Oracle Connection请求超时

时间:2015-02-10 12:10:22

标签: c# oracle connection-pooling

有时在.net

中使用Oracle托管驱动程序库的新OracleConnection时会出现以下错误

我想知道这个异常的类型,我需要在catch块中处理它。

    Message:Connection request timed out Stack Trace: at
 OracleInternal.ConnectionPool.PoolManager`3.CreateNewPR(Int32 reqCount, Boolean bForPoolPopulation, ConnectionString csWithDiffOrNewPwd, String instanceName) at OracleInternal.ConnectionPool.PoolManager`3.Get(ConnectionString csWithDiffOrNewPwd, Boolean bGetForApp, String affinityInstanceName, Boolean
 bForceMatch) at OracleInternal.ConnectionPool.OraclePoolManager.Get(ConnectionString
 csWithNewPassword, Boolean bGetForApp, String affinityInstanceName, Boolean bForceMatch) at OracleInternal.ConnectionPool.OracleConnectionDispenser`3.Get(ConnectionString cs, PM conPM, ConnectionString pmCS, SecureString securedPassword,
 SecureString securedProxyPassword) at Oracle.ManagedDataAccess.Client.OracleConnection.Open() at ClientService.ClientService.AuthenticateUser(String subno, String pin,
 String version

1 个答案:

答案 0 :(得分:0)

您的问题与在连接字符串中使用池作为默认属性有关。此问题在本文档中详细讨论:http://docs.oracle.com/cd/E51173_01/win.122/e17732.pdf in"使用连接池"章。