开发者

Connection Pooling on Oracle 11g w/ asp.net

开发者 https://www.devze.com 2022-12-12 22:24 出处:网络
What is the best way to handle connection pooling with Oracle 11g and asp.net, I\'m having issues where Oracle refuses to open up any new connections for the web app after a while.

What is the best way to handle connection pooling with Oracle 11g and asp.net, I'm having issues where Oracle refuses to open up any new connections for the web app after a while.

This causes the request to time out and queue up.!

EDIT: Is there anything that I need to do in Oracle to f开发者_高级运维ine tune this?


Since you didn't mention your Oracle config, its hard to tell you a first course of action, so you need to clarify how many sessions you have.

SELECT username, count(1) FROM v$session GROUP BY username;

Oracle's max is controlled by the "PROCESSES" instance parameter. The default may be something like 150. You may try bumping that to 300 or so for an OLTP web app, however, if you do have a leak, it will only delay the inevitable. But check the PROCESSES is at least as large as your "Max Pool Size" setting for your Oracle ADO connection string. Default for 11g ODP.NET is 100 I think.


Closing the connections is all you need to do. The framework should handle all of the pooling.


Querying the v$session would show all outstanding sessions. How many connections do you have and how quickly are you trying to create/disconnect them ? Shared servers is one mechanism to have multiple end clients share a limited number of connections.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号