Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting

Post new topic   Reply to topic
Help required in RDO / Oracle
View previous topic :: View next topic  
Author Message
suvendu21
Newbie


Joined: 08 Jul 2005
Posts: 1

PostPosted: Jul 8th, 2005 07:05 AM    Post subject: Help required in RDO / Oracle Reply with quote

Hi,

Can someone help me with this problem?
I am using RDO to connect to a remote Oracle server. The problem is that whenever I use EstablishConnection for establishing a connection to the database, an entry for this connection gets automatically inserted in the v$session table. But after the connection is closed by invoking the Close method of rdoConnection object that entry remains in the v$session table. It is not getting deleted. As a result when the maximum connection is reached we have to manually monitor the connections and kill them. Here is the code snippet used to establish connection. Can someone help me with this - how do I ensure that the entry for the connection gets deleted from v$session without manual interference?

Public Cn As New rdoConnection
Public mrdoEnv As rdoEnvironment

With rdoEngine
.rdoDefaultLoginTimeout = 20
.rdoDefaultCursorDriver = rdUseIfNeeded
End With
Set mrdoEnv = rdoEnvironments(0)

mbEnvOpen = True
With Cn
.Connect = "DSN=ABC;UID=" & UserId & ";PWD=" & password & ";SRVR=" & Server
If Not frmAsync Then
.EstablishConnection rdDriverComplete, False
Else
.EstablishConnection rdDriverComplete, False, rdAsyncEnable
While .StillConnecting
j = j + 1
DoEvents
Wend
End If
mrdoEnv.rdoConnections.Add Cn
End With
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Database & Reporting All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic