Dies ist eine statische Kopie unseres alten Forums. Es sind keine Interaktionen möglich.
This is a static copy of our old forum. Interactions are not possible.

Hansi

Praktikant

  • "Hansi" is male
  • "Hansi" started this thread

Posts: 5

Date of registration: Jan 27th 2004

1

Tuesday, January 27th 2004, 11:43am

SQL Blatt13

Hallo,

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
try {
	Class c = Class.forName("oracle.jdbc.driver.OracleDriver");
}
catch (ClassNotFoundException e) {
	e.printStackTrace();
}

Connection conn = null;
try {
	String url = "jdbc:oracle:thin:@cip-s.kbs.uni-hannover.de:1521:dbs1";
	conn = DriverManager.getConnection(url,	"dbsXX", "XXX");
}
catch (SQLException e) {
	e.printStackTrace();
}


liefert den Fehler

java.sql.SQLException: No suitable driver

Kann mir da jemand helfen??? ?(

  • "Joachim" is male

Posts: 2,863

Date of registration: Dec 11th 2001

Location: Hämelerwald

Occupation: Wissenschaftlicher Mitarbeiter (Forschungszentrum L3S, TU Braunschweig)

2

Tuesday, January 27th 2004, 6:01pm

RE: SQL Blatt13

Quoted

Original von Hansi

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
try {
	Class c = Class.forName("oracle.jdbc.driver.OracleDriver");
}
catch (ClassNotFoundException e) {
	e.printStackTrace();
}

Connection conn = null;
try {
	String url = "jdbc:oracle:thin:@cip-s.kbs.uni-hannover.de:1521:dbs1";
	conn = DriverManager.getConnection(url,	"dbsXX", "XXX");
}
catch (SQLException e) {
	e.printStackTrace();
}


liefert den Fehler

java.sql.SQLException: No suitable driver

Kann mir da jemand helfen??? ?(
Den JDBC-Treiber von Oracle hast Du?

http://otn.oracle.com/software/tech/java…jdbc/index.html
The purpose of computing is insight, not numbers.
Richard Hamming, 1962

Hansi

Praktikant

  • "Hansi" is male
  • "Hansi" started this thread

Posts: 5

Date of registration: Jan 27th 2004

3

Tuesday, January 27th 2004, 6:46pm

RE: SQL Blatt13

Quoted

Original von Joachim
Den JDBC-Treiber von Oracle hast Du?


Nee, den hab ich zumindest zu Hause wohl nicht drauf und das wird es wohl auch sein. Danke für den Hinweis. Aber warum ist der Treiber auch auf cip-s nicht verfügbar? Wird jetzt von mir erwartet, dass ich mich bei Oracle registriere, um den Treiber zu bekommen? Das ist ja wohl ein schlechter Witz und passt lieder voll ins Bild dieser Übung. :(

Das gibts Donnerstag in der Bewertung schriftlich X(