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!

Implementing work queues? (or, "readpast equivalent in oracle?")

83189Nov 7 2001
Without going to Advanced Queuing, is there a
more straightforward way to implement a work
queue?

As an example of what I'd like to do,
I have a table with rows, each row identifying some
work that has to be done.

I would like to have multiple processes pick up the
first available "unlocked" row, and select it for update.
When the work is done the process would update the row and
mark it done, and commit it, etc. If the process fails,
it would rollback and that will be the right behaviour
for my needs.

I think a SQL-server equivalent of the READPAST hint
to ignore row-locked entries would work nicely for what
I want to do, but I'm interested in other solutions, etc
for this problem?

Thanks,
-kb
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 5 2001
Added on Nov 7 2001
0 comments
272 views