Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

SQL Anywhere Synchronization Fails

Posted on 2003-03-22
5
Medium Priority
?
587 Views
Last Modified: 2008-03-03
I added a row in a table in the consolidated database thru Interactive SQL. I left the Interactive SQL window open. When i tried to run the mobilink client at the client machine using "dbmlsync -c connectionstring -o dbmlsync.out -v", the synchronization failed. When i closed the Interactive SQL, the synchronization worked.

The same happened when i added a row in the remote client database thru Interactive SQL and left the Interactive SQL window open.

Can anybody please explain why?

Do i have to run "dbmlsync -c connectionstring -o dbmlsync.out -v", everytime i want to sync the data?
0
Comment
Question by:Vogue
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:gletiecq
ID: 8192771
The update you made left an open transaction, and by default synchronization can't happen with open transactions.  Check the command line parms for an options that force transactions to close, to wait for transactions to close, or to disregard open transactions.  

Usually when I do this sync just hangs until the commit is issued.  Check your error log on both sides to make sure this is an issue about open transactions (making sure you use the -o parm for dbmlsrv8 as well).  Sometimes the error is on the server and it doesn't necessarily show up correctly on the remote side.

BTW, which version are you running?

Greg
0
 

Author Comment

by:Vogue
ID: 8193540
Thanks Greg.
I'm using version 8.0.2.3601

Do i have to run "dbmlsync -c connectionstring -o dbmlsync.out -v", everytime i want to sync the data?

Won't the data sync automatically whenever the events get fired?

0
 

Author Comment

by:Vogue
ID: 8193748
Thanks Greg.
I'm using version 8.0.2.3601

Do i have to run "dbmlsync -c connectionstring -o dbmlsync.out -v", everytime i want to sync the data?

Won't the data sync automatically whenever the events get fired?

0
 
LVL 4

Accepted Solution

by:
gletiecq earned 80 total points
ID: 8195934
Yes, that command runs the synchronization client that does all the work on the remote side.  If you want to automate the process, you can create an event that calls xp_cmdshell to run the dbmlsync command.  I'd recommend you use the -k option to close the client window on completion of the synchronization process, and to use the -ot option instead of the -o option to keep your execution logs down to a reasonable size.

Greg
0
 

Author Comment

by:Vogue
ID: 8201436
Thanks a lot.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Dropbox has a relatively new feature called Smart Sync.  This feature allows Dropbox Professional (not plus) and Dropbox Business (if enabled) users to store information in Dropbox WITHOUT storing any files on their computer.
Conducting a customer service survey used to be as straightforward as sending a template email out using checkboxes and numerical rating systems to measure satisfaction.
Integration Management Part 2
The Relationships Diagram is a good way to get an overall view of what a database is keeping track of. It is also where relationships are defined. A relationship specifies how two tables connect to each other. As you build tables in Microsoft Ac…
Suggested Courses

579 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question