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!

Stop the execution of the procedure while running

816802Jun 13 2011 — edited Jun 16 2011
Hi All,

We have a procedure that is processing millions of rows in a loop.

We want to stop execution of the procedure when it receives certain message (Ex: STOP).

Is there any way in Oracle where if the current executing procedure can be stopped in the middle if it receives certain message.

Note: We dont want to implement this approach by checking some table and check for the change of status, say RUN has been changed to STOP, Then exit the loop.

But this should be like, the procedure should be able to receive the message from outside and it should stop basing upon the message.

Appreciate your response.

Thanks,
Madhu K.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 14 2011
Added on Jun 13 2011
7 comments
1,596 views