Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Usins JDBC to connect to Oracle 8
I can connect Ok to Oracle 8 using the THIN driver like
Class.forName("oracle.jdbc.driver.OracleDriver");
DriverManager.getConnection("jdbc:oracle:thin:@111.112.113.114:1521:oracle",
"username", "password");
but when I try to use the Oci7 driver I cant connect
Class.forName("oracle.jdbc.driver.OracleDriver");
DriverManager.getConnection("jdbc:oracle:oci7:@Alias", "username",
"password");
Alias is defined in the network/admin/tnsnames.ora and tnsping alial can locate the servet, also sqlplus can connect using the alias.
Another problem, I cant find Oci8 anywhere, does anyone know where I can get it ?
Thanks,
Mike.
416 SoftTown Aoyama,Jingumae, Tel: 81-3-5413-7235 Shibuya,Tokyo. Fax: 81-3-5413-7236Japan. Received on Tue Apr 14 1998 - 18:57:50 CDT
![]() |
![]() |