Hello
I've been trying to connect to an oracle db for the last two days and that doesn't work. I solved all the problems concerning configuration and drivers but now my script just freezes at the getConnection command and does not get past it. I receive neither error nor exception. Here is my source :
Thanks for help
I've been trying to connect to an oracle db for the last two days and that doesn't work. I solved all the problems concerning configuration and drivers but now my script just freezes at the getConnection command and does not get past it. I receive neither error nor exception. Here is my source :
Code:
import java.sql.*;
public class testOra
{
public static void main(String[] args)
{
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
}
catch (Exception e)
{ }
String url = "jdbc:oracle:oci:@86.64.1.51:1521";
String login = "----";
String password = "-----";
try{
Connection connection = DriverManager.getConnection(url,login,password);
//interaction avec la base
}
catch(SQLException sqle){
System.out.println(sqle);
}
finally{
System.out.println("Cool !");
}
}
}
Comment