I'm getting an error in IntelliJ IDEA when im using a thin connection from java to oracle.
My oracle database is in a server and I can ping the server but my code can't establish connection:
Class.forName("oracle.jdbc.driver.OracleDriver");
connection = DriverManager.getConnection("jdbc:oracle:thin:@server ip:1521:orcl","user","path");
System.out.println("Oracle Registered...");
and error is:
java.sql.SQLRecoverableException: IO Error: Socket read timed out
oracle.net.ns.NetException: Socket read timed out