Oracle Connection Pooling in .Net

本小妞迷上赌 提交于 2019-12-01 03:43:34

Connection pooling is turned on by default as specified in the official ODP.NET documentation on Connection String Attributes (default: Pooling = true).

So, if your connection string omits any kind of connection pool setting, you will get a connection pool with the following basic default settings, again based on that same official ODP.NET documentation page on Connection String Attributes:

  • Connection Timeout = 15: Maximum time (in seconds) to wait for a free connection from the pool.
  • Decr Pool Size = 1: Number of connections that are closed when an excessive amount of established connections are unused.
  • Incr Pool Size = 5: Number of new connections to be created when all connections in the pool are in use.
  • Max Pool Size = 100: Maximum number of connections in a pool.
  • Min Pool Size = 1: Minimum number of connections in a pool.

The documentation mentions other interesting default pool values as well that you may want to read about as well.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!