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!

Using cursor to retrieve, update and return result set as part of a stored procedure

user-1a5opJul 7 2023

I have the requirement that multiple application instances retrieve data from a table and process them. There is no pre-defined criteria to ensure that a record can be retrieved only by one instance.

The approach thought of is to retrieve the next 100 (say) records, change the status to a value indicating the it is under process and return it.

How best this can be achieved using cursors?

Comments
Post Details
Added on Jul 7 2023
4 comments
374 views