Test connection problem!!!
Posted: Wed 14 Sep 2005 15:04
Platform Linux & Kylix3 C++
We are evaluating your products ORACLE & MySQL dbexpress and we are testing
them in failure situations (network problem: disconnect client/server cable, server shutdown, ecc).
Network problem
ORACLE NET: we have disconnected client network cable and executed
this command sqlConn->GetTableNames(pList). In this situation the application stays blocked for about 45 minute
and then raises an exception.
MySQL Core Lab: same as ORACLE NET.
Server Shutdown
MySQL Core Lab: we made the DB server shutdown and executed
this command sqlConn->GetTableNames(pList). In this situation we receive an empty pList in few second.
(that's OK this could be a way to verify a connection)
QUESTION:
What is the best technique to verify the connection status?
We need to know if DB server is connected before execute any sql query command, and we cannot wait for a long time.
Thanks
Max
We are evaluating your products ORACLE & MySQL dbexpress and we are testing
them in failure situations (network problem: disconnect client/server cable, server shutdown, ecc).
Network problem
ORACLE NET: we have disconnected client network cable and executed
this command sqlConn->GetTableNames(pList). In this situation the application stays blocked for about 45 minute
and then raises an exception.
MySQL Core Lab: same as ORACLE NET.
Server Shutdown
MySQL Core Lab: we made the DB server shutdown and executed
this command sqlConn->GetTableNames(pList). In this situation we receive an empty pList in few second.
(that's OK this could be a way to verify a connection)
QUESTION:
What is the best technique to verify the connection status?
We need to know if DB server is connected before execute any sql query command, and we cannot wait for a long time.
Thanks
Max