Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

2012 SQL AlwaysOn Availability Group - JDBC re-connection not happening in case of Multisubnet failover

$
0
0

Hi There,

Having some problem with MultiSubNet AG failover re-connection using SQL JDBC driver 4. Details given below.

SETUP:

We have a three node 2012 Windows Server Cluster, on top it we 2012 SQL Sever AlwaysOn Availability Group. 

Two nodes are in one subnet and other in a different subnet to make this as a multisubnet AlwaysOn AG.

An AG Listener is configured with a DNS name and two VIP assigned (For two subnet) to it. We were able to failover from one subnet to other using the SQL Studio successfully.

NEED:

We have a java application which will be connected to AG Listener name. In case of failover, automatic re-connection to DB/AG Listener name should happen.

For this we use  "sqljdbc4.jar" and added 'multiSubnetFailover=true' in our connection string. The connection String is given below.

cURL="jdbc:sqlserver://testsqlag:1433;databaseName=SalesDB;multiSubnetFailover=true;loginTimeout=200;applicationName=MyApp";

THE PROBLEM:

In case of AG failover, driver is not trying to re-connect to the other AG Listener name in other subnet. Not sure how to make it work. 

Is this supported in SQL Server 2012 ?

Thanks,

Krishna.




Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>