TADOConnection and connection lifetime
- From: user@xxxxxxxxxxxxxx
- Date: Tue, 31 May 2005 16:37:14 +0200
Hi,
i have 2 problems linked to Connections with ORACLE 9i and ADO (MDAC 2.7 and up).
1) on my application i have made a limited tries login process. First a successful login is done, then after closing the application, i test my "security" process by making x wrong tries that will finally drop the current user. I got then an Oracle error:
ORA-01940: cannot drop a user that is currently connected
I saw in the V$SESSION table that indeed the user i wish to drop is still alive.
How can i kill sooner a connection?
2) Another part of my application is using Global Temporary Tables, design by sessions. When the session is closed, then all the data inside disappear.
When i reconnect from the same user i got a connection that seems to be dirty, i mean keeping inside some data from previous session.
How can i clean the connection when i close it or return it to the pool?
I saw that there is more properties that can be add to a connection string, like:
Connection Lifetime Connection Reset
I try to use these but without great changes!
I'm using Delphi 5 (update 1), Oracle 9i, MDAC 2.7, on Win2K SP4 workstation.
Any direction of research will be welcomed.
Tia
Laurent .
- Follow-Ups:
- Re: TADOConnection and connection lifetime
- From: Michael Jacobs
- Re: TADOConnection and connection lifetime
- Prev by Date: Re: TADOConnection and connection lifetime
- Next by Date: Re: TADOConnection and connection lifetime
- Previous by thread: Insufficient key column information for updating or refreshing
- Next by thread: Re: TADOConnection and connection lifetime
- Index(es):
Relevant Pages
|