There seems to be an issue with Centos7 and the ojdbc6 driver that is used for Oracle connections. The connection hangs and or fails resulting in a timeout. The following is the simplest program I could derive to show this issue:
import java.sql.*;
public class Test{
public static void main(String[] args){
try{
Class.forName("oracle.jdbc.OracleDriver"):
}catch(ClassNotFoundException e){System.out.println(e);}
Connection conn = null;
try{
conn = DriverManager.getConnection(...);
}catch(SQLException e){System.out.println(e);}
}
}
The odd thing is this code executes perfectly fine on Centos6.