Dear All,
Hey,
I have Windows 98, JDK1.2.2, Oracle 8i Personal Edition (8.1.6) I am facing problem in using the thin drivers for oracle. I am using the following statement to connect to the database:
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection Con=DriverManager.getConnection("jdbc
racle:thin:@localhost:1521:GMD","username","password");
My SID is GMD
and username and password are my respective username and password. The code compiles correctly, but when I execute the code, I get the following exception:
Exception in Connection to Database : java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
Why am I getting this exception?
Please Help!
Also, what is the difference between TYPE II and TYPE III
jdbc drivers?
Thanks a lot.
Bye,
Tualha Khan