|
-
Mar 6th, 2009, 08:15 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] vb.net issue with oracle session
hi all,
i noticed in vb.net that when declaring new connection objects it creates a new session. and sometimes it reuses an existing one.
is this an expected behavior?
in my application i created a global temporary table. in oracle, this acts like a table but session based. the behavior mentioned above is causing some issues with my temporary table as new sessions are being created and thus, i'm not able to get the desired data from the table.
i thought of using a global connection but not sure if this is the best way.
any suggestions?
thanks.
VB Version: Microsoft Visual Studio 2008 Professional Edition
.NET Version: Microsoft .NET Framework Version 3.5
OS: Windows XP SP3
-
Mar 6th, 2009, 08:22 AM
#2
Re: vb.net issue with oracle session
That is the expected behavior for Oracle. The smon process has not had time to clean up the connection so it thinks it is still in use and creates a new session.
Sometimes the Programmer
Sometimes the DBA
Mazz1
-
Mar 6th, 2009, 09:00 AM
#3
Thread Starter
Hyperactive Member
Re: vb.net issue with oracle session
hi,
thanks for the info.
i would like to add a follow up question on this...
i'm trying to experiment with oracle connections and sessions.. i noticed that if i use a global connection object but then close and dispose it after using it, it removes the session after a while..
what is the impact if i leave the connection open the entire application is running?
thanks
VB Version: Microsoft Visual Studio 2008 Professional Edition
.NET Version: Microsoft .NET Framework Version 3.5
OS: Windows XP SP3
-
Mar 6th, 2009, 09:06 AM
#4
Re: vb.net issue with oracle session
I takes up one of you Oracle connection that is it. What is it. You may need to mofify the Oracle inti file to allow more connections at one time.
Sometimes the Programmer
Sometimes the DBA
Mazz1
-
Mar 9th, 2009, 07:23 PM
#5
Thread Starter
Hyperactive Member
Re: vb.net issue with oracle session
VB Version: Microsoft Visual Studio 2008 Professional Edition
.NET Version: Microsoft .NET Framework Version 3.5
OS: Windows XP SP3
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|