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

SQL Server 2016 : Always On Feature not sync User Login, Job, and show primary and secondary

$
0
0

Hy Guys,

i want ask you a few questions about sql server 2016 feature always on. First of all, let me introduce the environment of mine.

1. VM Node A

  • OS : Windows Server 2016
  • SQL Server 2016 Enterprise
  • IP : 10.xxx.xxx.141

2. VM Node B

  • OS : Windows Server 2016
  • SQL Server 2016 Enterprise
  • IP : 10.xxx.xxx.142

Let say, i have 20 database, and i want to make such as load balancer, for example, first 10 databases primary in Node A, and secondary in Node B, BUT the last 10 databases primary is in Node B, and the secondary in Node A.

The easy way is all 20 databases using primary in Node A, it would just nedd one Availability Group, and one listener. BUT because one availability group contains all databases inside only can choose primary in Node A or Node B, we can't choose 10 databases in this availability group to choose primary in Node A, and other 10 databases in Node B, as i know.

In my case, i have created 2 Availability Groups, one Availability Group A contain first 10 databases and one listener, (10.xxx.xxx.147) and one Availability Group B contain last 10 databases and one listener (10.xxx.xxx.148), and both of them cannot using the same IP address, that's why i used different IP Address.

The problems are :

  1. User Login and jobs isn't synchronize between Node A and Node B, How to make is synchronize?
  2. If we login using USERLOGIN, Both of Nodes have the same list such as databasename (synchronized), and we don't know which database is in Availability Group A or Availability Group B, we know it if we expand the database, there is error as like NOT ACCESSIBLE. How to make the list of database of instance just show the Primary node and hide the database is in secondary node? and if user A just only granted to access one database, when the user A login in SSMS, it will show the one database that granted on him, is it possible?

                       


yoga


Viewing all articles
Browse latest Browse all 4689

Trending Articles



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