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

jobs disable in alwayson secondary

$
0
0

Hi,

Allwayson availabillity group is configured on some dbs. Once the failover happens the primary becomes secondary and secondary becomes primary. we configured some same migration jobs in both replicas. Now once the failover happens these jobs should be enable in primary and disable in secondary.

I have a doubt here. When fail over happens the secondary becomes primary that is read write. primary becomes seconadry i.e readonly dbs. then what is the necessary to disable the jobs? In this stage what happens to the jobs in both replicas? also how about SQL Server Agent? will agent works in seconadary after failover? Do i need to enable and disable jobs automatically in both replicas?

Please clarify. i am confused with this.

If i need to enable (or execute in primary) and disable (not execute in seconadry)the jobs in each replicas,then pls help me how to do that? Any script is available to add step in each job.

Thanks.

Jo


pols



Viewing all articles
Browse latest Browse all 4689

Trending Articles



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