Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: JDBC Java -> Oracle connection problem ...
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
conn = DriverManager.getConnection
("jdbc:oracle:thin:@host:port:SID",user,password);
If you now have two instances, you need to use the correct SID (and Port if there is more than one listener).
If this isn't working, what errors are you seeing?
--
-cheers
DW
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Wed Dec 06 2000 - 13:25:33 CST
![]() |
![]() |