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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to check if a procedure is currently running with a specific parameter

rjsosiFeb 2 2022 — edited Feb 2 2022

Hi,
We're using "Oracle Database 12c Enterprise Edition Release 12.1.0.2.0"
We are trying to build a retry process for some input record but I am looking for an ability to check and see if the record is already being processed in Oracle before trying to reprocess the same record.
The process will be calling procedure with a control id. Can I find out in oracle if a specific stored procedure is processing with a specific input parameter at the current time?
So is there a table that stores a list of currently running or recently run procedures with specific parameters.
I know you'd be able to see it in Oracle Dynamic performance views but my knowledge there is not as up to date.
Would anyone with a better knowledge of those tables be able to help out here?
Thanks!

This post has been answered by User_H3J7U on Feb 2 2022
Jump to Answer

Comments

Post Details

Added on Feb 2 2022
14 comments
7,666 views