【发布时间】:2017-05-18 13:40:03
【问题描述】:
我正在使用 ODP.Net Managed Driver 开发在线解决方案。
我记得,Oracle 连接池是基于“连接字符串”的,不同的连接字符串会创建不同的连接池。 参考:https://docs.oracle.com/cd/B19306_01/win.102/b14307/featConnecting.htm#i1006393
The connection pooling service creates connection pools by using the
ConnectionString property as a signature, to uniquely identify a pool.
但是,在 SQL Server 参考:[2]:https://msdn.microsoft.com/en-us/library/8xx3tyca(v=vs.110).aspx
Connections are pooled per process, per application domain, per connection
string and when integrated security is used, per Windows identity. Connection
strings must also be an exact match; keywords supplied in a different order
for the same connection will be pooled separately.
现在我的同事正在和我争论 Oracle 池是通过 AP 和连接字符串来区分的。但我认为它只是连接字符串。
例如:
应用程序 [A]:连接字符串 [A]
应用程序 [B]:连接字符串 [A]
以上将使用相同的连接池。
但是我的同事说 应用程序 [A]:连接字符串 [A] 应用程序 [B]:连接字符串 [A] 将使用不同的连接池。
我说得对吗?请给我一个答案。
【问题讨论】:
标签: c# oracle connection connection-pooling