This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Database connection through Netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Database connection through Netbeans" Watch "Database connection through Netbeans" New topic
Author

Database connection through Netbeans

divya anand
Greenhorn

Joined: Oct 28, 2008
Posts: 25
Hi,

I'm trying to connect to an oracle database server through netbeans. I installed ojdbc14 driver. Through the "services" window, I tried to connect and I did the following but gives an error, "Ioexception: Network adapter failed to connect".

I selected the installed oracle driver from the services window and selected, "Connect using.." and opted for "direct url entry" and gave the url in the jdbc url field but it gives me the above exception.

Could anyone help me solve this issue.

Thanks,
Divyaa
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2491
    
    8

Can you connect outside of NetBeans? IOException tells that your database driver (the jdbc library) is found, but that your computer cannot connect to the database.


OCUP UML fundamental and ITIL foundation
youtube channel
divya anand
Greenhorn

Joined: Oct 28, 2008
Posts: 25
No, I could not connect. I tried to connect to the database server from an other computer, even then I get the same error. Is there anything else I should install other
than the oracle driver?

Please help!


Thanks,
Divyaa
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2491
    
    8

Is there anything else I should install other
than the oracle driver?
No. First try to set up a connection with help of your DBA.
only f that works, go one step further and try with NetBeans.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Database connection through Netbeans
 
Similar Threads
Odbc problem help me
Java native interface
EJB Test Evironment (Visual Age)
Establishing Connections to a Data base on a different machine
Oracle 8I and JDBC