Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

UPDATE statement and database locks

444035Oct 25 2005 — edited Nov 15 2005
Hello everybody,

I have a problem related to an UPDATE statement. There are two applications, let say A and B.

Application A executes:
update some_table
set some_field = 'value_A',
where pk_field=1

no commit!

Application B executes:
update some_table
set some_field = 'value_B',
where pk_field=1

Now application B is locked and wait until application A executes a commit.
THIS IS A PROBLEM!

I know one way to solve this problem:
Both applications should execute "select for update nowait" before
updating a row.

Is there any other solutions? Something like "update nowait"?

thanks in advance
Dmitri Geller
DGeller (at) lhsgroup dot com
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 13 2005
Added on Oct 25 2005
25 comments
2,352 views