OCCI Connection Pool on Oracle RAC [message #139313] |
Tue, 27 September 2005 07:09 |
jose_luis_fdez
Messages: 1 Registered: September 2005
|
Junior Member |
|
|
Hi,
In a OCCI program I use a connection pool to connect to a Oracle RAC
with two instances:
. . .
if ( env_general == NULL )
{
//env_general =
Environment::createEnvironment(Environment::OBJECT);
env_general =
Environment::createEnvironment(Environment::THREADED_MUTEXED);
}
if (connPool_general == NULL)
connPool_general = env_general->createConnectionPool(poolUserName,
poolPassword,
connectString, minConn, maxConn, incrConn);
. . .
I connect with:
conn = connPool_general->createConnection (user, passwd);
When there is a instance change I loss the connection. Is it a Oracle
configuration problem or must I resume the connection calling
"terminateConnectionPool" and "createConnectionPool" again ?
Thanks in advance,
Jose Luis
|
|
|
|