File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Problem in connecting to oracle 8i from java application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Problem in connecting to oracle 8i from java application" Watch "Problem in connecting to oracle 8i from java application" New topic
Author

Problem in connecting to oracle 8i from java application

Amitav Anand
Ranch Hand

Joined: Sep 22, 2003
Posts: 46
.....please help me out....
My java application is getting compiled absolutely fine but at the time of execution it is throwing an exception i.e.
(java.sql.SQLException:Io exception: The Network Adapter could not establish the connection)
Both the path and classpath are set in the following manner:
set path=c:\windows;c:\windows\command;c:\jdk1.3\bin;c:\jdk1.3\lib;
set classpath=%classpath%;c:\Oracle\Ora81\jdbc\lib\classes12.zip;
Waiting anxiously for the response..
Thanks
Amitav
Nagendra Prasad
Ranch Hand

Joined: Jul 11, 2002
Posts: 219
This could be related to a host of things:
a. The app server (or ur machine's app server) is not able to
see the oracle database server
b. the oracle listener process is not running
c. u have used a different service name while setting up the oracle data
source

Can you connec to the oracle instance from any other program from the same machine which has the app server (SQL*Plus for instance??)
[ September 22, 2003: Message edited by: Nagendra Prasad ]

Best Regards,<br />Nagendra Prasad.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

I deleted the duplicate post of this thread for you.


GenRocket - Experts at Building Test Data
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem in connecting to oracle 8i from java application