The Network Adapter could not establish the connection
From: kaeli (tiny_one_at_NOSPAM.comcast.net)
Date: 02/24/04
- Next message: Bjorn Abelli: "Re: Advice requested regarding Access database in Java"
- Previous message: Lin DeNoyer: "Advice requested regarding Access database in Java"
- Next in thread: kaeli: "Re: The Network Adapter could not establish the connection"
- Reply: kaeli: "Re: The Network Adapter could not establish the connection"
- Reply: Joe Weinstein: "Re: The Network Adapter could not establish the connection"
- Reply: Richard Wheeldon: "Re: The Network Adapter could not establish the connection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 24 Feb 2004 10:00:19 -0600
Hi all,
I copied some code from one (unix solaris) machine to another and am now
getting the following error:
The Network Adapter could not establish the connection
The exact same code works fine on the original machine, so the DB is up,
listeners are up, etc.
I am missing one vital thing - there is no Oracle installed on the new
machine. I just moved the classes111.zip file. I did not install Oracle.
I don't think I should have to, but obviously, I'm missing something I
need to connect.
(there is no tnsnames.ora, etc)
This fails on the new machine.
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:url:port:instance", "username", "password");
Any ideas what I need to do to get a connection to a DB without having
to install oracle on the machine?
TIA
-- -- ~kaeli~ She was engaged to a boyfriend with a wooden leg but broke it off. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
- Next message: Bjorn Abelli: "Re: Advice requested regarding Access database in Java"
- Previous message: Lin DeNoyer: "Advice requested regarding Access database in Java"
- Next in thread: kaeli: "Re: The Network Adapter could not establish the connection"
- Reply: kaeli: "Re: The Network Adapter could not establish the connection"
- Reply: Joe Weinstein: "Re: The Network Adapter could not establish the connection"
- Reply: Richard Wheeldon: "Re: The Network Adapter could not establish the connection"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|