From: Dhananjay Singh <dk_singh99@yahoo.com>
To: Kido Kouassi <jjkido@gmail.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: SQL 2000 to PostgreSQL 9.3 Replication of Large Number of Tables
Date: Thu, 6 Feb 2014 18:15:16 +0800 (SGT)
Message-ID: <1391681716.70326.YahooMailNeo@web193606.mail.sg3.yahoo.com> (raw)
In-Reply-To: <CA+ebzukthrLBm9qJ1u6-=fr98wZK_JAh9Wf9bimqOFY53Bq+LQ@mail.gmail.com>
References: <CA+ebzukthrLBm9qJ1u6-=fr98wZK_JAh9Wf9bimqOFY53Bq+LQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Never tried, But can you try adding table one after another.
Regards
Dhananjay
OpenSCG
On Thursday, 6 February 2014 1:19 AM, Kido Kouassi <jjkido@gmail.com> wrote:
Hello Admin,
I am setting up a replication from a database on MS SQL 2000 that has 200+ tables to a database on PostgreSQL 9.3.
The replication works when I try replicating tables one at the time.
When replicating multiple tables though, sometimes it works
Sometimes it doesn't.
When it doesn't Work, the replication Log in MS SQL will have the following error:
Bulk copying data into table 'Tablex'
>OLE DB Subscriber 'PG1': SELECT * FROM "Tablex" WHERE 0 = 1
>[2/4/2014 12:18:42 PM]SQL01.distribution: {call sp_MSadd_distribution_history(71, 3, ?, ?, 0, 0, 0.00, 0x00, 1, ?, 0, 0x01, 0x00)}
>Agent message code 21044. The number of columns in the bcp file does not match that of the destination table.
>[2/4/2014 12:18:42 PM]SQL01.distribution: {call sp_MSadd_distribution_history(71, 6, ?, ?, 0, 0, 0.00, 0x01, 1, ?, 54, 0x01, 0x01)}
>Adding alert to msdb..sysreplicationalerts: ErrorId = 39,
>Transaction Seqno = 000007e3000005c9014e00000007, Command ID = 54
>Message: Replication-Replication Distribution Subsystem: agent SQL01-sqldb-e-publication1-PG1-71 failed. The number of columns in the bcp file does not match that of the destination table.
>[2/4/2014 12:18:42 PM]STAGE-SQL01.distribution: {call sp_MSadd_repl_alert(3, 71, 39, 14151, ?, 54, N'SQL01', N'sqldb1', N'PG1SQL56', N'pgdb1', ?)}
>ErrorId = 39, SourceTypeId = 1
>ErrorCode = ''
>ErrorText = 'SELECT * FROM "Tablex" WHERE 0 = 1'
>[2/4/2014 12:18:42 PM]SQL01.distribution: {call sp_MSadd_repl_error(39, 0, 1, ?, N'', ?)}
>
the funny thing is that when I set up a replication with only the failing table, it works and another table becomes problematic.
I have one set with 18 table that works perfectly.
Another table with 15 is failing.
The Ideal would be to replicate All the tables in one set but this option is failing to.
Did anybody ever run into something similar.
Your help will be highly appreciated.
Thank You,
Kido Kouassi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: dk_singh99@yahoo.com, jjkido@gmail.com
Subject: Re: SQL 2000 to PostgreSQL 9.3 Replication of Large Number of Tables
In-Reply-To: <1391681716.70326.YahooMailNeo@web193606.mail.sg3.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox