Is there a way to stop or terminate a long Oracle query in JDBC? This often causes the application server to restart to force jdbc to disconnect from Oracle DB.
Search for functionality similar to SQL Plus - Kill session
in Java or JDBC
in SQL Plus
SQL> ALTER SYSTEM KILL SESSION 'sid,serial#';
any key to execute in java?
source share