Stopping Oracle stored procedure from Java code

N

nkunkov

Hello,
I do hope somebody has already solved my problem.
I have an application that spawns 4 different threads. Each thread
will perform it's own task which is calling a stored procedure. Each
stored procedure could possibly run a very long time. The user should
be able to stop any of the tasks he started. Stopping a task means
stopping a stored procedure and doing the clean up of the affected
tables.
My only idea on how to stop a stored proc is to close the database
connection that the thread is using to call a stored procedure. I'm
not sure it's such a good idea though... What are my options?
I would appreciate any help on this matter.
Thanks in advance.
NK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,140
Latest member
SweetcalmCBDreview
Top