Question : How to force jdbc connection to close and reopen.

hi all,

We use an oracle cluster (RAC) with 2 instances.
We want to work permanently on one instance' which is on stronger machine, and use the other (second) one only for fail over.


When the first instance is down the connections to it in the pool are closed and new ones created to second instance, that's ok.
When the first instance is up again I would like to close the connections to the second and move back to the first, but, the connections are tested against the second once per 'RefreshMinutes' period and are not closed as long as the second is functioning ok.

So, how do I force the connections to close and reopen?

Thanks
Anat

Answer : How to force jdbc connection to close and reopen.

No it does not. When you ask for a connection, you will always get a live connection, in both scenarios (unless all the instances in the RAC or multipool are down, which is not very likely).
However, the difference is when the original database is restarted. Then the multi-pool is able to use the original database, while the RAC solution does not.
Random Solutions  
 
programming4us programming4us