Oracle Connection Pooling in .Net

前端 未结 1 1923
余生分开走
余生分开走 2021-01-01 21:51

We have a system that uses an Oracle database. I\'ve been asked if the system makes use of connection pooling which I\'m not sure about.

We are using the Orac

相关标签:
1条回答
  • 2021-01-01 22:18

    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.

    0 讨论(0)
提交回复
热议问题