Error: 983, Severity: 14, State: 1;Unable to access availability database 'xxxx' because the database replica is not in the PRIMARY or SECONDARY role.
There is an error occurred on Always On High availability Environment today. There are two nodes One primary replica and another is Secondary replica. Assume here A is Primary replica and B is a secondary replica. Windows team has a plan to update NET BIOS. So they want do the update on Secondary node(B) which is acting as secondary replica now. So every database is in Synchronized State in secondary replica(B) because AG configured as Synchronous Commit. After NET BIOS update windows team started the services. Being a DBA, we need to monitor and do the fail over. Once services are started in Secondary replica(B) databases started coming to Synchronized state one by one. There is a database called Orders is taking time as its size is near 1 TB. After an hour of waiting even this database come to Synchronized state and as usual it Secondary replica now(B) because we hit the secondary replica first. Now we want to do the same update in Prim...