java - How to cancel call to oracle stored procedure? -
i have java application, searches records in oracle on click of search button. calls stored procedures search data in oracle tables. search output large , takes lot of time process, want implement cancel button operation can cancelled @ time. thought of implementing separate thread in java wont solve problem because stored procedure called. how can achieve this?
you should create stored procedure contains kill command cancel running store procedure , call new sp cancel button.
for killing running sp refer this: