what is "Failed to lock the record, another user holds the lock"? What should I do with it?

Posted on 2007-08-01
Medium Priority
Last Modified: 2013-11-17
I am using JDeveloper to insert data to Oracle database, my browser give me the following message:

Validation ErrorYou must correct the following error(s) before proceeding:
JBO-26030: Failed to lock the record, another user holds the lock.
JBO-26030: Failed to lock the record, another user holds the lock.

Question by:huizhanghopeqi
  • 2
LVL 14

Expert Comment

ID: 19609974
If the record is selected by another user for update, then you will get this error.

You could issue a select for update clause to wait and acquire a row level lock on the record u're trying to update.

Author Comment

ID: 19610139
This is when I insert a new record, it is impossible to be selected by another user at this moment.
Please help. Thanks.
LVL 14

Expert Comment

ID: 19610203
Could you post your code here??

Accepted Solution

fmonroy earned 1500 total points
ID: 19610410
it's most likely because other user has a pending transaction on the table that you are inserting into.

as sathyagiri says, post the inserting code and any transaction code on the same table.

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
Creating a Cordova application which allow user to save to/load from his Dropbox account the application database.
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

807 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