Click here to Skip to main content
15,911,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a .Net application with Oracle database. I received the below error while trying to run a report in my application. Request anyone to check and advice if there is a fix for this problem.
Also note that I have spoken to my DBA and he says that there is something in the .Net code that is not ending the sessions.

The error message is :

ORA-2391: exceeded simultaneous SESSIONS_PER_USER limit

Let me know if you need any more info
Posted

1 solution

For DB side:

Check this
Error: ORA-02391: exceeded simultaneous SESSIONS_PER_USER limit[^]

Coding side:

There's possibilities that you didn't close/dispose the connection object properly. When you open a connection, you should close after the use & you should dispose the objects properly. Check these articles for reference
ASP.NET - How To Use(Open/Close) Connections Correctly[^]
Implementing IDisposable and the Dispose Pattern Properly[^]
ADO.NET Connection Pooling at a Glance[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900