Azure数据库同步到其他数据库和同步代理问题 [英] Azure Database Sync to other database and Sync Agent problem

查看:94
本文介绍了Azure数据库同步到其他数据库和同步代理问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好, 


我在Azure中有两个数据库。一个是生产数据库(这里名称为XXX),另一个是用于测试的同类数据库(名称XXXTest)。


我使用"同步到"从Azure生产数据库(XXX)进行了同步其他数据库" OnPremises SQL Server数据库的方法。同步效果很好。 OnPremises数据库服务器正在使用SQL Data Sync 2.0。 


然后我尝试将Azure的开发数据库(XXXTest)同步到OnPremises Development数据库。


所有数据库都是相同的。


但是当我尝试"同步到其他数据库"时使用"New Sync Group"从Azure Devlopement数据库到OnPremise数据库我注意到在生产数据库Syncronization中创建的同步代理也在那里,生产数据库也是
元数据数据库。什么...为什么这种功能?可以解决这种情况,因为如果我理解正确,这些同步不能使用相同的同步代理和元数据数据库。


如何解决这个问题?


<我附上了这种情况的照片。


希望有人可以提供帮助。


谢谢Michael。



生产数据库





开发和测试数据库




解决方案

美好的一天
Michael


我没有看到任何问题,只需要对Sync Database架构进行一些澄清。让我尝试总结架构要点


1.您无法在同一台计算机上安装多个同步代理。如果需要多个代理,那么您需要在多台机器上安装这些代理(大多数情况下都不需要)


2。如果您需要同步到多台本地计算机,则需要在每台计算机上提供代理


3.对于每个代理,您需要生成不同的密钥。


4. 您只能在客户端配置一个代理密钥"Microsoft SQL数据同步"


这意味着,单个同步代理(在特定计算机上)无法连接使用不同密钥的多个Azure数据同步服务。


5. 同步使用时,将找到已与特定azure虚拟服务器相关的代理选项 "与其他数据库同步" (但您不必使用这些,您可以创建新的)。如果需要,您始终可以创建另一个Sync
代理(例如,如果您需要同步到不同的本地服务器)。


如果您将尝试使用不同的Azure虚拟服务器然后您将看不到现有的代理。当客户端应用程序使用选项"注册"将其注册到Azure虚拟服务器时,将注册代理。 


6。您可以从安装在同一台计算机上的多个本地SQL Server同步多个数据库(使用客户端应用程序中的"注册"选项使用单个键)。


Hello, 

I have two Databases in Azure. One is Production database(name XXX here) and other is same kind of database for testing (name XXXTest).

I have made Synchronization from Azure Production database (XXX) using "Sync to Other databases" method to OnPremises SQL Server database. Synchronization works well. OnPremises database server is using SQL Data Sync 2.0. 

Then I tried to make Synchronization to Azure's development database(XXXTest) to OnPremises Development database.

All databases are identical.

But when I tried to do "Sync to other databases" from Azure Devlopement database to OnPremise database using "New Sync Group" I noticed that Sync Agent created in Production databases Syncronization was there too and also Production databases Metadata database. What... Why this kind of functionality? Can fix this situation because if I have understood right these synchronizations can't use same Sync Agents and Metadata databases.

How can I fix this problem?

I have attached pictures of this situation.

Hope that someone could help.

Thanks Michael.

Production database


Developement and testing database

解决方案

Good day Michael,

I do not see any issue but only the need for some clarification on the Sync Database architecture. Let me try to summarize the architecture main points

1. you can't install multiple Sync Agents on the same machine. If there is a need for multiple Agent then you will need to install these on multiple machines (there is no need for most cases)

2. If you need to sync to multiple on-premises machine then you will need to gave an Agent on each machine

3. for each Agent you need to generate different key.

4. You can only configure one Agent Key in the client "Microsoft SQL Data Sync"

Which means, that a single Sync agent (on specific machine) can not connect multiple Azure Data Sync services which use different Keys.

5. sync Agents which are already related to specific azure virtual server will be found when you use the option "Sync to other databases" (but you do not have to use these and you can create new one). You can always create another Sync Agent if you want (for example if you need to sync to a different on-premises server).

If you will try to use the different Azure virtual server then you will not see the existing Agent. The Agent is registered when the client app registered it to the Azure Virtual server using the option "Register". 

6. You can sync multiple databases from multiple on-premises SQL Servers which are installed on the same machine (using a single key by using the option "Register" in the client app).


这篇关于Azure数据库同步到其他数据库和同步代理问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆