We use ADO to access Oracle 10g release 2, the Oledb provider for Oracle 10g. We are facing some problems with the connection pool. The database is on a remote machine, and pooling is done as it should. But if for some reason the remote machine drops, the connection returns from the pool, and the request for this connection fails. When this connection is closed, it is returned back to the pool instead of being invalid. Subsequent requests to open the connection are successful, but the request fails. This strange behavior, according to the OLEDB specifications, the provider must support the DBPROP_CONNECTIONSTATUS property, so if the connection is invalid, it will not be returned to the pool.
Things get in when a remote machine arrives. The connections in the pool are still invalid, and although the opening of the connection succeeds, the connection request fails. Oracle OLEDB can no longer connect to the server, and we must restart our application. This is undesirable because our application is a critical application.
Any ideas on how to overcome this.
Thanks Mubashir
source share