Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Replication Oracle to 2008R2 - truncated update commands?


Replication Oracle to 2008R2 - truncated update commands?

Author
Message
BrightonDBA
BrightonDBA
Grasshopper
Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)

Group: General Forum Members
Points: 12 Visits: 158
I have set up an Oracle transactional publication on a single table as a test. Snapshot works ok so i assume we have good data mapping. However the replication is failing on update. When i try to view the failing command, using sp_browsereplcmds, it is truncated. .

sp_MSupd_BULLPERSON" (62,'Mr','FRANK','Q','SPENCER',12345,NULL,'678910','M','1939-09-13 00:00:00','M',NULL,NULL,NULL,NULL,'2013-01-18 14:10:36',NULL,NULL,NULL,NULL,NULL,' --missing parameters here.


This makes it impossible to test the sp_MSupd_Table command and isolate any problem field which is causing the update to fail. If i look directly into the MSrepl_commands table the command is encoded. Looking in the sp_browsereplcmds script i see sp_printstatement @query which i assume translates the coded command - is this truncating the command ?

The error shown in the replication monitor does not reveal which field i need to look at

I created a smaller publication so that the entire update with all parameters is visible. this works fine. For the same update it gives no error. Consequently i don't know it there is an errant data mapping in the larger publication or even if the larger publication is sending a truncated command!

Any help appreciated.

Z
Lowell
Lowell
SSChampion
SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)SSChampion (14K reputation)

Group: General Forum Members
Points: 14913 Visits: 38906
ok just checking the basics here;
I'm assuming you are reviewing the code in SSMS? by default, to save memory, SSMS limits results to the first 256 characters...have you already changed this to show the first 8K (if the command is larger than 8K, you need to use something else...SSMS will not show more than 8K, even if the string is longerSmile





Lowell

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

BrightonDBA
BrightonDBA
Grasshopper
Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)Grasshopper (12 reputation)

Group: General Forum Members
Points: 12 Visits: 158
Brilliant - never noticed that little SSMS 'feature' before! Well that's got my "command" where i want it.
Needless to say it runs fine from the SSMS window using 'exec' but the replication still fails on update.

Any thoughts where to go next? Nothing much in Googleland


Command attempted:
{CALL "sp_MSupd_BULLPERSON" (62,'Mr','FRANK','Q','SPENCER',123456,NULL,'270944','M','1939-09-13 00:00:00','M',NULL,NULL,NULL,NULL,'2013-01-18 14:10:36',NULL,NULL,NULL,NULL,NULL,'
(Transaction sequence number: 0x0000000000000000000700000000, Command ID: 2)

Error messages:
Invalid distribution command, state 2: transaction 0x0x0000000000000000000700000000 command 2{offset : 175 token offset: 174 state: 50) }. (Source: MSSQL_REPL, Error number: MSSQL_REPL21001)
Get help: http://help/MSSQL_REPL21001
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search