Why session remains inactive when connection is closed and disposed?
Posted: Wed 13 Feb 2013 13:50
Hi !!
Please, forgive my poor english grammar, but I'm Spanish. I'll do my best in order to understand me.
I have been trying the "dotConnect for Oracle", in a VB.NET application.
I have noticed that, when the Connection is Opened, an Inactive thread is shown in the Server, as connected. This is right. No operations have been made, so it remains inactive.
The problem is when I try to "Close" and "Dispose" the Connection (built in runtime). The connection closes... yes.... but the "Inactive" session remains. It's not until 5 minutes when the Oracle Database "releases" this session from "inactive".
This wouldn't matter if I wouldn't work with more than 800 sessions at the same time, and most of them connect to the Database with a period of time less than 10 or 15 seconds.
I need to CONNECT and to DISCONNECT as soon as possible, because I can't let remain 800 sessions INACTIVE because the Oracle Server does not support this.
WHY WHEN I "CLOSE" the Connection.... does not disappear the session in the Oracle DataBase until 5 minutes later?. In the last ODAC components - for Delphi 6 -, the session was released immediately. Is this a bug in "dotConnect for Oracle" components?.
If not... Can you explain to me how to order the Database to release this "thread" or session that remains inactive for more than 5 minutes, in spite of being closed and disposed?
Thank you very much.
Regards
Please, forgive my poor english grammar, but I'm Spanish. I'll do my best in order to understand me.
I have been trying the "dotConnect for Oracle", in a VB.NET application.
I have noticed that, when the Connection is Opened, an Inactive thread is shown in the Server, as connected. This is right. No operations have been made, so it remains inactive.
The problem is when I try to "Close" and "Dispose" the Connection (built in runtime). The connection closes... yes.... but the "Inactive" session remains. It's not until 5 minutes when the Oracle Database "releases" this session from "inactive".
This wouldn't matter if I wouldn't work with more than 800 sessions at the same time, and most of them connect to the Database with a period of time less than 10 or 15 seconds.
I need to CONNECT and to DISCONNECT as soon as possible, because I can't let remain 800 sessions INACTIVE because the Oracle Server does not support this.
WHY WHEN I "CLOSE" the Connection.... does not disappear the session in the Oracle DataBase until 5 minutes later?. In the last ODAC components - for Delphi 6 -, the session was released immediately. Is this a bug in "dotConnect for Oracle" components?.
If not... Can you explain to me how to order the Database to release this "thread" or session that remains inactive for more than 5 minutes, in spite of being closed and disposed?
Thank you very much.
Regards