Advantage Lock errors HELP

Posted on 2012-08-24
Medium Priority
Last Modified: 2013-02-28
We have an application that access the advantage 9.1 database server.

Lately we have been having issues with locks and permissions. Like below on the application  We have also had this issue with foxpro updates to the advantage database.

We are also getting some 5004 error messages.  .   I've been looking though Advantage help messages, and have found a suggestion that the issue pertains to new "features" in Vista, Windows7, and your server that are affecting rights detection.    However, I don't see any solutions.

ANy thoughts on what is causing this?
Question by:anderdw2
1 Comment
LVL 30

Accepted Solution

Olaf Doschke earned 2000 total points
ID: 38408510
What if the error message is simply telling the truth in it's "may be" part of the message? What if the file or record is already locked?

If you lock a file or record that's what you want to happen to other users also acquiring a lock. A client should react to that error in deciding to wait and retry or go on with something else. You need to establish an error handling here with TRA CATCH. It's not a problem, it's just the normal behavior in a multi user environment using manual locking strategies.

If you rather would want an automatic behavior of wait and retry, then try SET REPROCESS TO -1, perhaps. I can't guarantee this will be repsected by the advantage database driver, though, maybe there is an equivalent setting you can set in the connection.

Also see here:

If you have both a classic foxpro application with native access and an application accessing data through advantage database drivers, then this mode is needed to respect native locks. Otherwise you can switch to Advantage Proprietary Locking, but not before all apps are migrated to not access data directly accessing the dbf/cdx files. In that mode presumably the Advantage driver is using dbf/cdx exclusive, as it's the only process needing file access and handling requests coming in from the ODBC layer.

From what http://devzone.advantagedatabase.com/dz/webhelp/advantage9.1/advantage_proprietary_locking.htm says in proprietary mode the driver queues requests and does not raise such errors, but that can only be used, once all applications only go through the AD driver.

Bye, Olaf.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
Creating a Cordova application which allow user to save to/load from his Dropbox account the application database.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

850 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