?
Solved

SQL Anywhere Synchronization Fails

Posted on 2003-03-22
5
Medium Priority
?
554 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
The well known Cerber ransomware continues to spread this summer through spear phishing email campaigns targeting enterprises. Learn how it easily bypasses traditional defenses - and what you can do to protect your data.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month14 days, 6 hours left to enroll

771 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