System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. at System.Data.OracleClient.OracleConnectionPoolManager.GetPooledConnection(String encryptedConnectionString, OracleConnectionString options, OracleConnection owningObject, Boolean& isInTransaction) at System.Data.OracleClient.OracleConnection.OpenInternal(OracleConnectionString parsedConnectionString, Object transact) at System.Data.OracleClient.OracleConnection.Open() at LoadExcel.DataAccessCenter..ctor(String connectionString) in C:\Inetpub\wwwroot\LoadExcel\Class\DataAccessCenter.cs:line 51 at LoadExcel.DataAccessCenter..ctor() in C:\Inetpub\wwwroot\LoadExcel\Class\DataAccessCenter.cs:line 37 at LoadExcel.WebForm._default.btnLoadExcel_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\loadexcel\webform\default.aspx.cs:line 116
------解决方法--------------------------------------------------------
连接池的问题, 你把连接池的max开大点
可能你没传完就关闭了。
------解决方法--------------------------------------------------------
http://community.csdn.net/Expert/topic/5640/5640028.xml?temp=2.715701E-02
------解决方法--------------------------------------------------------
你看看是不是因为多次打开来连接,你把一个库中的数据先读取到数据集中,如果过多的话就分次读区,再写入另一个库中
------解决方法--------------------------------------------------------
从报的错来看好像是超时了。
------解决方法--------------------------------------------------------
你可以把session或者整个station的timeout设置的大一些。
------解决方法--------------------------------------------------------
应该不是oracle的问题,.net的数据库连接比较特殊。
修改一下connection对象的属性
------解决方法--------------------------------------------------------
其实 你可以 每导出2K行记录后,打开一个新的sheet页继续导入excel就可以了