dbTalk Databases Forums  

idle sessions from ADO.NET despite closing them?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss idle sessions from ADO.NET despite closing them? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jobs
 
Posts: n/a

Default idle sessions from ADO.NET despite closing them? - 11-16-2007 , 10:32 AM






I connect to Oracle and close the connection in my code every time.
Dispite that sessions remain idle showing following:

ALTER SESSION SET NLS_LANGUAGE= 'AMERICAN' NLS_TERRITORY= 'AMERICA'
NLS_CURRENCY= '$' NLS_ISO_CURRENCY= 'AMERICA' NLS_NUMERIC_CHARACTERS=
'.,' NLS_CALENDAR= 'GREGORIAN' NLS_DATE_FORMAT= 'DD-MON-RR'
NLS_DATE_LANGUAGE= 'AMERICAN' NLS_SORT= 'BINARY' TIME_ZONE= '-05:00'
NLS_COMP= 'BINARY' NLS_DUAL_CURRENCY= '$' NLS_TIME_FORMAT=
'HH.MI.SSXFF AM' NLS_TIMESTAMP_FORMAT= 'DD-MON-RR HH.MI.SSXFF AM'
NLS_TIME_TZ_FORMAT= 'HH.MI.SSXFF AM TZR' NLS_TIMESTAMP_TZ_FORMAT= 'DD-
MON-RR HH.MI.SSXFF AM TZR'

I'm not sure if related, but my connection string has this set to
true:

Persist Security Info=True

The dba has set idle sessions to be killed after 10 minutes. And Ive
set IIS to kill idle sessions after 10 minutes of inactivity.

However, I still occassionally hit the max number of processes in
Oracle.

Thanks for any help or information.

Reply With Quote
  #2  
Old   
Mark D Powell
 
Posts: n/a

Default Re: idle sessions from ADO.NET despite closing them? - 11-16-2007 , 01:09 PM






On Nov 16, 11:32 am, jobs <j... (AT) webdos (DOT) com> wrote:
Quote:
I connect to Oracle and close the connection in my code every time.
Dispite that sessions remain idle showing following:

ALTER SESSION SET NLS_LANGUAGE= 'AMERICAN' NLS_TERRITORY= 'AMERICA'
NLS_CURRENCY= '$' NLS_ISO_CURRENCY= 'AMERICA' NLS_NUMERIC_CHARACTERS=
'.,' NLS_CALENDAR= 'GREGORIAN' NLS_DATE_FORMAT= 'DD-MON-RR'
NLS_DATE_LANGUAGE= 'AMERICAN' NLS_SORT= 'BINARY' TIME_ZONE= '-05:00'
NLS_COMP= 'BINARY' NLS_DUAL_CURRENCY= '$' NLS_TIME_FORMAT=
'HH.MI.SSXFF AM' NLS_TIMESTAMP_FORMAT= 'DD-MON-RR HH.MI.SSXFF AM'
NLS_TIME_TZ_FORMAT= 'HH.MI.SSXFF AM TZR' NLS_TIMESTAMP_TZ_FORMAT= 'DD-
MON-RR HH.MI.SSXFF AM TZR'

I'm not sure if related, but my connection string has this set to
true:

Persist Security Info=True

The dba has set idle sessions to be killed after 10 minutes. And Ive
set IIS to kill idle sessions after 10 minutes of inactivity.

However, I still occassionally hit the max number of processes in
Oracle.

Thanks for any help or information.
Just because you connect and disconnect in your application does not
mean that .net is not using connection pooling of some type. What is
the .net release level? I do not remember the details but we had a
developer that wrote a .net application that created a new session
every time it ran. We hit max processes over and over till I
convenced another developer to look into the issue. They found some
parameters that they set. I am pretty sure one was set in the
application and another outside the individual program but in the
software.

Your problem could be different but use v$session to verify if one
applicaiton is spawing tons of processes.

HTH -- Mark D Powell --





Reply With Quote
  #3  
Old   
jobs
 
Posts: n/a

Default Re: idle sessions from ADO.NET despite closing them? - 11-16-2007 , 01:30 PM



Quote:
Just because you connect and disconnect in your application does not
mean that .net is not using connection pooling of some type. What is
the .net release level? I do not remember the details but we had a
developer that wrote a .net application that created a new session
every time it ran. We hit max processes over and over till I
convenced another developer to look into the issue. They found some
parameters that they set. I am pretty sure one was set in the
application and another outside the individual program but in the
software.

Your problem could be different but use v$session to verify if one
applicaiton is spawing tons of processes.

HTH -- Mark D Powell --- Hide quoted text -

I think you are right. We are on .NET 2.0. If anybody knows where i
might find such a setting please let me know.


Reply With Quote
  #4  
Old   
Mark D Powell
 
Posts: n/a

Default Re: idle sessions from ADO.NET despite closing them? - 11-18-2007 , 06:42 PM



On Nov 16, 2:30 pm, jobs <j... (AT) webdos (DOT) com> wrote:
Quote:
Just because you connect and disconnect in your application does not
mean that .net is not using connection pooling of some type. What is
the .net release level? I do not remember the details but we had a
developer that wrote a .net application that created a new session
every time it ran. We hit max processes over and over till I
convenced another developer to look into the issue. They found some
parameters that they set. I am pretty sure one was set in the
application and another outside the individual program but in the
software.

Your problem could be different but use v$session to verify if one
applicaiton is spawing tons of processes.

HTH -- Mark D Powell --- Hide quoted text -

I think you are right. We are on .NET 2.0. If anybody knows where i
might find such a setting please let me know.- Hide quoted text -

- Show quoted text -
Different tools may well have different settings. I will try to
remember to ask Monday a couple of developers who work with .net if
they are aware of any settings that may apply.

PS If you already have the answer please post it for the next user.

HTH -- Mark D Powell --


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.