This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC and the fly likes SQLException : The Network Adapter could not establish connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "SQLException : The Network Adapter could not establish connection" Watch "SQLException : The Network Adapter could not establish connection" New topic
Author

SQLException : The Network Adapter could not establish connection

Tapan Prajapati
Greenhorn

Joined: Mar 05, 2010
Posts: 27
hii,

I am using Windows Vista 32bit o/s , installed Software Oracle 11.2.0.1
i am able to execute oracle Type 1 driver by using odbc connection

Now i want to connect my Java Application with My Oracle Database Software by Type 4 mechanism
i successfully added "OJDBC6.JAR" file in my class path
while executing code i got an SqlException : The Network Adapter could not establish connection

here is my code..



 
It is sorta covered in the JavaRanch Style Guide.
 
subject: SQLException : The Network Adapter could not establish connection