Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> (How do I use thin drivers?) was Re: Connecting to DB crashes Java
Martin Brehovsky wrote:
>
How do I use the thin drivers? I've tried every combination I can come up with but always get a java.sql.SQLException: The network adaptor could not establish the connection.
I tried:
DriverManager.getConnection("jdbc:oracle:thin:@venom:1521:orcl" ,user,pass);
//where venom is the network name of the machine
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl" ,user,pass);
DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:orcl" ,user,pass);
DriverManager.getConnection("jdbc:oracle:thin:@www.mydomain.com:1521:orcl" ,user,pass);
DriverManager.getConnection("jdbc:oracle:thin:@venom:208.61.21.89:orcl" ,user,pass);
//where 208.61.21.89 is my IP address....
All the above methods fail and give me the same java.sql.SQLException with regards to the network adapter. . Received on Thu Mar 09 2000 - 08:02:23 CST
![]() |
![]() |