Replication-Replication Distribution Subsystem: agent xxxxxx failed. Column names in each table must be unique

简介: 最近遇到一个关于发布订阅(Replication)的奇葩问题,特此记录一下这个案例。我们一SQL SERVER数据库服务器出现大量告警。告警信息如下所示: DESCRIPTION: Replication-Replication Distribution Subsystem: agent xxxxxx failed.

  最近遇到一个关于发布订阅(Replication)的奇葩问题,特此记录一下这个案例。我们一SQL SERVER数据库服务器出现大量告警。告警信息如下所示:

DESCRIPTION: Replication-Replication Distribution Subsystem: agent xxxxxx failed. Column names in each table must be unique. Column name 'xxxxx' in table 'dbo.xxxxxx' is specified more than once.

    经过一番详细检查、分析后才发现这个错误出现的前因后果。我们暂且用A表示TableName, C表示该表上的字段/列名。 该系统的供应商的维护人员由于需求变更,需要修改表A,增加字段C,但是这个表做了发布订阅,所以他首先在订阅服务器上执行了增加字段C的脚本,然后去发布服务器上执行增加字段C的脚本,结果就出现了这个错误。Replication要将A表的修改从发布服务器同步到订阅服务器,结果订阅服务器上A表已经有了字段C,所以出现这个错误。正常情况下应该在发布服务器增加字段C,Replication会自动同步到订阅服务器。

   刚开始这个错误让我一头雾水,不知道为什么报这样的错误。直到详细检查、推理验证才发现问题根源。可以说是对Replication的一知半解导致了这个错误,我想开发人员和DBA都应该引以为戒!

相关文章
|
4月前
|
存储
Build desc failed:Fetch table group shards failed on meta proxy:Loading cached shard 1ocation value for table group[dwhg_scm.dwhg_prd_tg_default] failed
Build desc failed:Fetch table group shards failed on meta proxy:Loading cached shard 1ocation value for table group[dwhg_scm.dwhg_prd_tg_default] failed
40 2
delete in ST05 trace - deletion will also lead to many DB access first
delete in ST05 trace - deletion will also lead to many DB access first
101 0
delete in ST05 trace - deletion will also lead to many DB access first
|
SQL 测试技术 数据库
Could not update the distribution database subscription table. The subscription status could not be changed.
在一个测试服务器删除发布(Publication)时遇到下面错误,具体如下所示 标题: Microsoft SQL Server Management Studio   ------------------------------   Could not delete publication 'RPL_GES_MIS_QCSDB'.
1125 0
|
SQL Windows
Unable to determine if the owner (Domain\UserName) of job JOB_NAME has server access
早上巡检的的时候,发现一数据库的作业报如下错误(作业名等敏感信息已经替换),该作业的OWNER为一个域账号: JOB RUN: 'JOB_NAME' was run on 2016-6-1 at 7:00:00 DURATION: 0 hours, 0 minutes, 1 seconds STATUS: Failed MESSAGES: The job failed.
1400 0
|
SQL 数据库 数据库管理
Replication-Replication Distribution Subsystem: agent xxxxxx failed. Column names in each table must be unique
原文:Replication-Replication Distribution Subsystem: agent xxxxxx failed. Column names in each table must be unique   最近遇到一个关于发布订阅(Replication)的奇葩问题,特此记录一下这个案例。
1019 0
|
JavaScript 关系型数据库 MySQL
MySQL GR(group replication) Single Primary
组复制是一种可用于实现容错系统的技术。复制组是一个通过消息传递相互交互的server集群。通信层提供了原子消息和完全有序信息交互等保障机制。MySQL组复制以这些功能和架构为基础,实现了基于复制协议的多主更新。
4943 0
|
SQL 关系型数据库 MySQL
Mysql Group Replication in Single-Primary Mode安装部署配置
Mysql Group Replication in Single-Primary Mode安装配置
2058 0