Results 1 to 5 of 5

Thread: [RESOLVED] vb.net issue with oracle session

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    403

    Resolved [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

  2. #2
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    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

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    403

    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

  4. #4
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    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

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    403

    Re: vb.net issue with oracle session

    thanks.

    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
  •  



Click Here to Expand Forum to Full Width