Hello,
i'm trying to use TOracleSessionPool. What i did is:
1. drop on form a OSP: TOracleSessionPool component
2. drop on form two buttons
3. button1:
with TOracleSession.Create(nil) do begin
Pooling:= spInternal;
LogonUsername:= '..';
LogonPassword:= '..';
LogonDatabase:= '..';
Pool:= OSP;
LogOn;
end;
4. button2:
OSP.Compress;
the problem (or maybe i do not know something) is:
when i press button1 a new oracle session is created, count property of pool is increased
but when i press button2 i expect TOracleSessionPool to release connection and count property to decrease, but the session remains connected, count does not decrease and i can see this session in v$session
I'v tried to play with TimeOut property and CompressOld but got no results
Could you please explain me what am i doing wrong?
i'm trying to use TOracleSessionPool. What i did is:
1. drop on form a OSP: TOracleSessionPool component
2. drop on form two buttons
3. button1:
with TOracleSession.Create(nil) do begin
Pooling:= spInternal;
LogonUsername:= '..';
LogonPassword:= '..';
LogonDatabase:= '..';
Pool:= OSP;
LogOn;
end;
4. button2:
OSP.Compress;
the problem (or maybe i do not know something) is:
when i press button1 a new oracle session is created, count property of pool is increased
but when i press button2 i expect TOracleSessionPool to release connection and count property to decrease, but the session remains connected, count does not decrease and i can see this session in v$session
I'v tried to play with TimeOut property and CompressOld but got no results
Could you please explain me what am i doing wrong?