Session timeout

scheprj

Member
Can I set the session timeout?
I'm using a Orcale XE 10 client installation.

I want to have a quicker respons on the TQuery when the remote database is down.

Kind Regards,

Rob van Scheppingen
Sun Test Systems
 
Thanks for the reply.
This is not what I'm looking for.
If I connect to a database with sql I can set a CONNECTION_TIMEOUT see example:

sqlplus rolladm_sun/sun@"(DESCRIPTION = (CONNECT_TIMEOUT=3)(ADDRESS_LIST = (ADDRESS = (COMMUNITY = tcpcomm)(PROTOCOL = TCP)(Host = oracle_server.net)(Port = 1521)))(CONNECT_DATA = (SID = xe)))"

Can I set this in the connection with DOA?

br.
 
Yes, you can use the same connection parameters:

Code:
MySession.LogonUsername := 'rolladm_sun';
  MySession.LogonPassword := 'sun';
  MySession.LogonDatabase := '(DESCRIPTION = (CONNECT_TIMEOUT=3)(ADDRESS_LIST = ....))';

 
Thanks.

I didn't know that you could place a connect string in this possition.

The connection is made, I have to test the timeout yet.

br.
 
Back
Top