JDBC connection without any response from Oracle database 19c after a long execution query
i have a JAVA program which use JDBC connection to connect Oracle database 19c. The program will execute a stored procedure and it takes around 2 hours to complete. Log in the database show the stored procedure complete the execution after 2 hours. But seems the database and the java program lost the connection. Java program keep waiting for the response from database forever. Until i kill the connection in java program and it show the following error:
java.sql.SQLRecoverableException: IO Error: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond