Hello We are currently migrating from Sybase 11 to Sybase 17. We use file replication with dbremote (SQL Remote, publications..). We have managed to upgrade our Sybase 17. Now we are testing our replication but we are running into errors here. Export command: C:\Program Files\SQL Anywhere 17\Bin64\dbremote.exe" -c "eng=dev;dbn=dev;LINKS=tcpip(HOST=<SERVER>;PORT=<PORT>);uid=db;pwd=db;COMMLINKS=TCPIP;CharSet=utf-8" -b -qc -s -os 50M -o "D:\Sync\dbremote_messages.log" -l 100000 -t -v "D:\DATABASES\DEV" Import command (our remote databases are still Sybase 11): "%SQLANY11%\Bin32\dbremote.exe" -c "eng=local01;dbn=local01;uid=db;pwd=db;CharSet=utf-8;COMMLINKS=TCPIP,shmem" -b -qc -r -os 50M -o "D:\Sync\dbremote_messages.log" -l 100000 -t -v "D:\Databases\local" Export is successful, but in comparison to Sybase 11 it has created about double the amount of files, is that normal? But when trying to import it's trying to import the same table twice: ... I. 2021-02-04 12:03:12. 96 rows synchronized I. 2021-02-04 12:03:12. SELECT SystemSettingID, Attribute, CurrentValue, Created_By, Last_Updated_Date, Last_Updated_By, Creation_Date, Log_Annul, Status, Rep_Key FROM dba.SystemSetting I. 2021-02-04 12:03:12. 61 rows synchronized I. 2021-02-04 12:03:12. SELECT SystemSettingID, Attribute, CurrentValue, Created_By, Last_Updated_Date, Last_Updated_By, Creation_Date, Log_Annul, Status, Rep_Key FROM dba.SystemSetting E. 2021-02-04 12:03:12. SQL statement failed: (-193) Primary key for table 'SystemSetting' is not unique : Primary key value ('777000000001') Afterwards the imports stops, deletes all the replication files and no data has imported. Am I missing something here, what could possibly be going wrong? Thank you. |
Double the number of messages files being created by v17 SQL Remote does not sound correct. I'm suspicious that you may have ended up with two remote users using the same address somehow.
Are you running a SYNCHRONIZE SUBSCRIPTION on the consolidated for a single remote user or multiple remote users when the problem occurs?
Could you please post the exact SYNCHRONIZE SUBSCRIPTION command(s) you are executing at the consolidated database and the results of the following SQL statement run against both the consolidated database (i.e. eng=dev;dbn=dev) and the remote database (eng=local01;dbn=local01) that is generating primary key errors :
Thanks, Reg
Hello Reg
Thank you for the quick reply.
Query result again consolidated (we have many remote databases, 0777 is the one we have newly created / I am testing with now).
I have checked the whole result and icat0777 is only there once. I cannot post the complete result because it is too big.
Remote (0777)
Full script we are running against the consolidated database (This is for ALL subscriptions, but this creates files in different folders).
That is the only command we run in order to start the export.
Thank you
I'm interested in the SYNCHRONIZE SUBSCRIPTION statement(s) you executed against the consolidated database, not the dbremote command line you use against the consolidated database.
https://help.sap.com/viewer/93079d4ba8e44920ae63ffb4def91f5b/17.0/en-US/817b5e2f6ce210148aecd787a63222ee.html
Thanks, Reg
Is this what you are looking for?
When adding a new remote installation we execute the following scripts:
But we only execute these once.
I see that you also have a technical support issue open for this and are dealing with Ken. We'd be interested in getting information from you that will be difficult to post in the forum (you've already needed to truncate the results of something we've asked for), so I think it's best if we follow up through the tech support incident instead, where there are better methods for sharing large amounts of information.
If anyone other than Michael is following along at home, please respond to this post, and I'll be sure to post the eventual solution in the forum.
Reg
Thank you, we will continue this in the support issue.