Quantcast
Channel: SCN: Message List - SAP SQL Anywhere
Viewing all 2182 articles
Browse latest View live

Re: Mobilink synchronization error

$
0
0

The syncase.sql in 32 bit and 64 bit should be the same.

Did you have a copy of 32 bit?  Just compare it.


Re: Mobilink synchronization error

Re: 12.0.1.3797 Database corrupt on mobile device

$
0
0

Is seems all this information if for a desktop computer.

 

We have a handheld with operating system "Windows embedded Handheld 6.5 Professional".

 

It looks like if the database gets corrupt when the user resets the handheld when the database is running.

 

Is a "Flush to disk" possible on a handheld?

Re: 12.0.1.3797 Database corrupt on mobile device

$
0
0

Some wild guesswork: as it's on Windows, it might be possible to configure the driver for the SD card in two ways: fast or secure (like external storage devices in desktop versions of Windows).

Another thought: when saving energy, devices may be powered down, having an impact on the integrity of the DB.

Unable to load custom mlreplay DLL

$
0
0

Hi everyone,

 

I am trying to use a custom mlreplay DLL to test synchronization performance. I have created the dll using the generated source files from 'mlgenreplayapi' utility but when I try to start mlreplay with the custom dll I get an error saying that the dll cannot be loaded. There is no additional information in the log so I can't figure out what I have done wrong.

 

The following is the command I use to start mlreplay:

 

mlreplay -n 10 -o mlreplay.log ml-replay.dll recorded_protocol_fw820syncserver_2.mlr

 

I'm using SQL Anywhere 12.0.1.3726 on x64 machine. The dll is built for x64 architecture. I have attached a link to download the project in case anyone want's to look at the set-up.

 

http://www.fileconvoy.com/dfl.php?id=g88dd2bc727da9ae9999431395d001cc30c3ccbe55

 

Documentation on mlreplay is sparse so any suggestions/recommendation would be much appreciated.

 

Thanks,

 

Ross

Re: Unable to load custom mlreplay DLL

$
0
0

Update: It looks like I forgot to add dependency dll to the work directory. Now the dll is loaded but none of the callbacks can be found. I get this in the log:

 

 

 

I. 2013-12-18 14:13:24.100. SQL Anywhere MobiLink Replay Tool Version 12.0.1.3726

I. 2013-12-18 14:13:24.100.

I. 2013-12-18 14:13:24.100. Copyright © 2001-2012, iAnywhere Solutions, Inc.

I. 2013-12-18 14:13:24.100. Portions copyright © 1988-2012, Sybase, Inc. All rights reserved.

I. 2013-12-18 14:13:24.100. Use of this software is governed by the Sybase License Agreement.

I. 2013-12-18 14:13:24.100. Refer to http://www.sybase.com/softwarelicenses.

I. 2013-12-18 14:13:24.100.

I. 2013-12-18 14:13:24.198. <Main> Option 1: -n 10

I. 2013-12-18 14:13:24.198. <Main> Option 2: -o mlreplay.log

I. 2013-12-18 14:13:24.198. <Main> Option 3: ml-replay.dll

I. 2013-12-18 14:13:24.198. <Main> Option 4: C:\ml_replay_82\recorded_protocol_fw820syncserver_2.mlr

I. 2013-12-18 14:13:24.198. <Main> Starting MLReplay with recorded protocol file, C:\ml_replay_82\recorded_protocol_fw820syncserver_2.mlr

I. 2013-12-18 14:13:24.200. <Main> The recorded protocol version is 65

W. 2013-12-18 14:13:24.702. <Main> [5003] MLReplay was unable to load the GetUploadTransaction callback

E. 2013-12-18 14:13:24.702. <Main> [-5039] MLReplay was unable to load the IdentifySimulatedClient callback, which is a required callback

E. 2013-12-18 14:13:24.709. <Main> [-5048] MLReplay was unable to load the FiniIdentifySimulatedClient callback, which is a required callback

W. 2013-12-18 14:13:24.709. <Main> [5004] MLReplay was unable to load the DelayCreationOfSimulatedClient callback

W. 2013-12-18 14:13:24.709. <Main> [5013] MLReplay was unable to load the DelayDestructionOfSimulatedClient callback

W. 2013-12-18 14:13:24.716. <Main> [5005] MLReplay was unable to load the GetDownloadApplyTime callback

W. 2013-12-18 14:13:24.716. <Main> [5002] MLReplay was unable to load the ReportEndOfReplay callback

W. 2013-12-18 14:13:24.716. <Main> [5012] MLReplay was unable to load the DelayStartOfReplay callback

W. 2013-12-18 14:13:24.716. <Main> [5006] MLReplay was unable to load the GlobalInit callback

W. 2013-12-18 14:13:24.716. <Main> [5007] MLReplay was unable to load the GlobalFini callback

E. 2013-12-18 14:13:24.716. <Main> [-5002] MLReplay failed to initialize correctly

I. 2013-12-18 14:13:24.737. <Main> Ending MLReplay

Re: Unable to load custom mlreplay DLL

$
0
0

Found the answer!

 

I had to create a .def file and put the exported callback functions into it like so:

 

LIBRARY   ml-replay

EXPORTS

  CreateAndInitMLReplayUploadTransaction

  DelayCreationOfSimulatedClient

  DelayDestructionOfSimulatedClient

  DelayStartOfReplay

  DestroyMLReplayUploadTransaction

  FiniIdentifySimulatedClient

  FreeAllUploadRows

  GetDownloadApplyTime

  GetNumRows

  GetNumUploadTables

  GetRow

  GetUploadTable

  GetUploadTransaction

  GlobalFini

  GlobalInit

  IdentifySimulatedClient

  ReportEndOfReplay

Re: Mobilink synchronization error

$
0
0

Hi Gabrielle,

 

I did a quick check, and I installed SQL Anywhere 16 on to a Windows 7 x86 machine and on to a Windows 7 x64 machine - the diff between the "\MobiLink\Setup\syncase.sql" files doesn't show any differences for myself.

 

Could you clarify which sections are actually missing? Are you confident that both of these files came from a full SQL Anywhere 16 installation?

Regards,

 

Jeff Albion

SAP Active Global Support


Re: 12.0.1.3797 Database corrupt on mobile device

$
0
0

Hi Eric,

 

Is a "Flush to disk" possible on a handheld?

 

The short answer to this question is: "yes."

 

We actually do this currently - we always try to write directly to the file store via the Windows API, avoiding caching options where possible. (e.g. FILE_FLAG_NO_BUFFERING and FILE_FLAG_WRITE_THROUGH options). For more information about how this process occurs in Windows (including Windows CE/Mobile), see: File Caching (Windows).

---

 

We have also addressed some of these scenarios for customers previously (specifically for Windows Mobile devices). See: CR #473559 and  CR #491180 - however, these fixes should be present in 12.0.x.

 

If you have a sample corrupted database and a console log file from when a corruption occurred, we can work with you / your device vendor to help figure out what is happening during these power down times - you should open a technical support case for this type of analysis.

 

Regards,

 

Jeff Albion

SAP Active Global Support

Re: Mobilink synchronization error

$
0
0

If they are different, could you attach the diff between these two files?  If so, it should be a bug for the installer. Thanks.

Re: Mobilink synchronization error

$
0
0

I installed mine to a Windows XP x86 machine.

 

the attached file is my syncase.sql and that file doesn't contain all the the necessary tables, procedures etc that needs to be installed by mobilink.

Deploying CLR

$
0
0

Hi.

 

I've written some functions in a C# DLL, which is called from a stored procedure using CLR.

Is it possible to update this DLL without having to stop the database-server?

It looks like the server is holding the DLL open after the first call from the SP.

And it doesn't look like "stop environment clr" does the trick.

 

Any thoughts?

 

Regards,

 

Bjarne Anker

Maritech Systems AS

Norway

Re: Mobilink synchronization error

$
0
0

Hi Gabrielle,

 

Do you have a full SQL Anywhere 16 installation or a deployment of it (built from another installation)?

 

What was the file path that you found this file on - was it c:\Program Files\SQL Anywhere 16\MobiLink\Setup\syncase.sql ?

 

This copy is a much older copy of the file (from what appears to be a 9.0.0.x installation) - here's the copyright date at the top:

 

-- *******************************************************************

-- Copyright 1988-2003 iAnywhere Solutions, Inc.  All rights reserved.

-- *******************************************************************

 

and here's the one from SQL Anywhere 16:

 

-- ***************************************************************************

-- Copyright (c) 2013 SAP AG or an SAP affiliate company. All rights reserved.

-- ***************************************************************************

 

Regards,

 

Jeff Albion

SAP Active Global Support

Re: Deploying CLR

$
0
0

Hello Bjarne,

 

Which version and build of SQL Anywhere 12 are you using? There was a bug (CR #739187, fixed in 12.0.1.3902) where if you issued 'STOP EXTERNAL ENVIRONMENT CLR' that even if no other connections were using the environment, the external executable (dbextclr12.exe) would remain running - it's this executable that will actually be holding a lock on the assembly file.


You can try upgrading to 12.0.1.3902 or higher (In the SAP Service Marketplace portal: Support Packages and Patches - S > "SYBASE SQL ANYWHERE" > SYBASE SQL ANYWHERE 12.0 > SYBASE SQL ANYWHERE 12.0 (Support Packages and Patches) > Windows on x64 64bit > "EBF 22109: 12.0.1 SP66 Build 3994 - 64 Bit", or download the EBF from downloads.sybase.com), try the "STOP EXTERNAL ENVIRONMENT CLR" call, and see that once the executable is shut down, if that releases the assembly file lock.

 

Regards,

 

Jeff Albion

SAP Active Global Support

 

 

Re: Mobilink synchronization error

$
0
0

I'm using the trial version of SQL Anywhere 16.

That is the path where I found it.


Re: Deploying CLR

$
0
0

Thanks Jeff!

 

Looks like exactly what we need.

I'm currently downloading and is going to test later today.

 

Regards,

 

Bjarne

Re: Failed to download the trial edition of ASA16

$
0
0

Possibly this is some network blocking issue in China.

Now I tried it again, seems the last download always blocked.

Re: Mobilink synchronization error

$
0
0

Hi,  this is not correct.

In the trial version of SA16,  the syncase.txt locates at:

{SA16}\MobiLink\Setup\syncase.sql.

 

The content looks like:

 

-- ***************************************************************************

-- Copyright (c) 2013 SAP AG or an SAP affiliate company. All rights reserved.

-- ***************************************************************************

 

 

--

-- Create the MobiLink Server system tables and stored procedures in

-- a Sybase ASE consolidated database.

--

 

 

create table ml_ldap_server (

 

I think you are using the old historic syncase.sql, perhaps comes from ASA9.

EBF Download

Re: EBF Download

$
0
0

That link works for me (connecting from Germany) and shows the page that is supposed to be displayed.

Viewing all 2182 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>