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

SQL 2012 AlwaysON and CDC Revenge

$
0
0

Current Environment: Our current environment is a 2 node cluster SQL Server 2012 AlwaysON.

We also utilise CDC to capture changes as per the business requirement. 

Problem: We've experienced in the event of AlwaysON failover, CDC breaks and it doesn't start or harvest changes to the logs until it is manually re-enabled on the new primary. Like BOL said:

https://msdn.microsoft.com/en-us/library/hh403414(v=sql.110).aspx

"Harvesting Changes for Change Data Capture Without Replication:
In order to resume the harvesting of changes after failover, the stored procedure sp_cdc_add_job must be run at the new primary to create the local capture job.
The following example creates the capture job. EXEC sys.sp_cdc_add_job @job_type = 'capture';"

However in the event of partner server unreachable on failover you will not be able to restart CDC because log reader cannot process changes until they are hardened on the secondary server (which is now broken).

My query is if this is the case then how do we resume CDC automatically with only one node in AlwaysON cluster?

Secondly is it possible to automate this process (resuming CDC) without taking the database out of availability mode?


Viewing all articles
Browse latest Browse all 4689

Trending Articles



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