本文介绍了超时时间已过。所有池连接使用,最大池大小达到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一段时间后,出现以下错误显示的页面。

我能做些什么,以prevent呢?

我有大量用户和应用程序使用的Oracle 11g。请给我建议池大小,这样可以延长默认的最大池大小为100。

我已经检查正确关闭所有连接。我使用 OracleDataReader 数据表在我使用我的应用程序的方法是为下:

 公共OracleDataReader BidNoIncr()
    {
        为OracleConnection objOracleConnection =新的OracleConnection(objDBClass.GetConnSring());
        OracleDataReader objDataReader;
        字符串strQuery =SELECT MAX(BID_NO)+1作为SNumber从HH_BIDS
        的OracleCommand objOracleCommand =新的OracleCommand(strQuery,objOracleConnection);
           objOracleConnection.Open();
           objDataReader = objOracleCommand.ExecuteReader(System.Data.CommandBehavior.CloseConnection);
            返回objDataReader;

解决方案

In general, this error may occur in the following situations:

1) You have a very large number of users using your database in the same time and you run out of free connections. Possible solutions: increase number of allowed connections on your server and/or (if your system is a webserver) increase the pool size specified in database connection string.

2) Your system has poor database logic design and/or connection leaks like when connection open isn't closed properly later. Solution for this will be auditing your code for such connection leaks and fixing them by properly closing connections all the time.

这篇关于超时时间已过。所有池连接使用,最大池大小达到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 18:25