Salut !!
Je voudrais me connecter avec JDBC (sous eclipse) à ma base oracle XE !
J'ai fais sa :
J'ai mi le driver sous eclipse !
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 public class TestJdbc{ private static Connection c=null; TestJdbc() throws SQLException{ try{ Class.forName("oracle.jdbc.driver.OracleDriver"); c=DriverManager.getConnection("jdbc:oracle:thin:@localhost:8080:oracle", "SYSTEM", "PASS"); } catch(ClassNotFoundException s){System.out.println("erreur : "+s);} } }
L'url de la base j'ai mi un peu nimporte quoi car je ne sais pas quoi mettre.
Pour acceder a ma base via IE je fait "http://localhost:8080/apex"
Voila merci de m'aider , je debute !
A+
Partager