Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in June and this forum will be retired.

I'm testing setting up a synchronization profile on a remote and ran up against a "missing encryption key" error.

There doesn't seem to be a -ek or similar switch as used with dbmlsync but looking through the docs it seems that I should try using an "Authentication Parameters" setup. I've added the authenticate_parameters connection script to the mobilink server and then used the -ap switch in the sync profile to add the ek, such as -ap "encryptionKey". From the docs it seems that this should send the ek to the mobilink server.

However, the error comes pretty quick and checking sp_get_last_synchronize_result(), the error comes after the log scan starts so,it seems this is on the remote side?

The remote is set up to synchronize with the consolidated and dbmlsync works with the -ek. The setup is over an internal network, remote and cons on separate servers.

Appreciate the help.

asked 01 Mar '19, 16:20

user2359's gravatar image

user2359
1566614
accept rate: 100%

edited 01 Mar '19, 20:23

The authentication parameters option is data that is passed to the MobiLink Server and is unrelated the the encryption of the remote database.

Is the problem using the SYNCHRONIZE command on an a strongly encrypted database?

Reg

(01 Mar '19, 16:25) Reg Domaratzki
Replies hidden

Yes, that is the problem.

(01 Mar '19, 16:26) user2359
Comment Text Removed

Did you specify -ek when starting the remote database (dbsrv16.exe etc)?

(02 Mar '19, 08:58) Breck Carter

Yes. -ek is specified when starting the db engine. The engine is running and I can synchronize using dbmlsync, also with -ek.

If I use the ping option with SYNCHRONIZE it pings the mobilink server successfully.

(02 Mar '19, 11:16) user2359
Comment Text Removed

There was a limitation to the SYNCHRONIZE command before v17.0.10 (which should be released in the next week or so) that prevented it from being able to be run against a strongly encrypted unless you pre-started the dbmlsync process with the -sm switch (and possibly -po to specify the port) and the -ek switch to specify the encyrption key. Even if the database engine had been started and provided with the encyrption key, dbmlsync also needed the encryption key so it could read the offline transaction logs.

In v17.0.10, the syntax of the SYNCHORNIZE command was altered to add a "KEY key" clause so that when the SYNCHRONIZE command spawned the dbmlsync process, it could add the -ek switch to the start line of the dbmlsync process.

Reg

permanent link

answered 02 Mar '19, 12:25

Reg%20Domaratzki's gravatar image

Reg Domaratzki
7.7k343118
accept rate: 37%

Thank you Reg. I'll keep an eye out for the new release.

(02 Mar '19, 15:24) user2359
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×371
×22

question asked: 01 Mar '19, 16:20

question was seen: 1,043 times

last updated: 02 Mar '19, 15:24