cancel
Showing results for 
Search instead for 
Did you mean: 

SQL Anywhere 17: Dbremote import/export importing certain tables twice

mmangels
Explorer
0 Kudos
1,039

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.

Accepted Solutions (0)

Answers (0)