File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Connection Error: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Connection Error:" Watch "Connection Error:" New topic

Connection Error:

Maanik kandan

Joined: Aug 26, 2009
Posts: 4

is this correct URL for oracle database gives me an error:


SQL problems: Io exception: The Network Adapter could not establish the connection

please sort out my issue..
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2904

1. For Oracle JDBC url:

2. Make sure oracle database instance is running on port 1521 and that port is open.

3. Disable the similes.

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Maanik kandan

Joined: Aug 26, 2009
Posts: 4
I have tried that type of URL too ..but its give me an same Error..please give me suggestion regarding my issue
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Is Oralce running locally? Are you using a SID and is it correctly configured?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Maanik kandan

Joined: Aug 26, 2009
Posts: 4
yeah am my home PC..during my installation of oracle i gave my sid and global database as oracle..

is that right?
Asmita Khamkar

Joined: Mar 28, 2009
Posts: 25
I am also getting Network adapter error could not establish connection, but I get this error when my internet connection is on, otherwise it connects to oracle properly and all my queries work properly when my Internet is off.
I agree. Here's the link:
subject: Connection Error:
It's not a secret anymore!