Probleme de connexion avec Oracle 10g express
Salut a tout le monde,
j'ai crée une petite classe pour tester si la connexion a ma base de donnée (Oracle 10G express) mais j'ai comme resultas l'exception suivante :
Code:
1 2 3 4 5 6 7 8 9 10 11 12
| Excepción de E/S: Got minus one from a read call
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at jdbc.exemple.test.Client.main(Client.java:23) |
le code de ma classe est:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
package jdbc.exemple.test;
import java.sql.*;
import oracle.jdbc.driver.*;
public class Client {
public static void main(String[] arg){
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
String url="jdbc:oracle:thin:@localhost:8080:apex";
String nom="";
Connection con=DriverManager.getConnection(url,"system","manager");
}catch(Exception e)
{
System.out.print(e);
}
}
} |
Merci pour votre aide.