1

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 fine tune this?

3
  • Are you sure you are actively destroying all your connections in code, for instance by employing a using statement? Commented Nov 24, 2009 at 15:34
  • Yes. oConn.Close(),. Is there someway to trace/view the amount of open connections? Commented Nov 24, 2009 at 15:54
  • Which database provider do you use? ODP.net, devart, dotconnect, Microsoft's provider for Oracle? Commented Nov 24, 2009 at 18:48

3 Answers 3

2

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.

Sign up to request clarification or add additional context in comments.

Comments

0

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

Comments

0

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.

1 Comment

I see hundreds of sessions there. But where do I define/control it?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.