I have two Oracle Database instances, both 11g version.
I have written a simple java code to execute a query and then cancel it while it is running.. This is my code.