Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

Unable to connect to Oracle 10g Free Express Edition from NetBean IDE

Thread view: 
javadev - 24 May 2006 08:44 GMT
Hello

I am trying to connect to an Oracle 10g Free Express Edition database
that is running on the local machine from the NetBeans IDE.

I am using the driver : sun.jdbc.odbc.JdbcOdbcDriver.
The database URL has been input as:
jdbc:oracle:thin:@localhost:1521:orcl

However I get the error: "Unable to add connection, null". I have also
tried various other combinations of the URL with Ip address and other
local ports.

Could someone please suggest if I am making some mistake here.

Thanks
SS
jcsnippets.atspace.com - 24 May 2006 21:36 GMT
> Hello
>
[quoted text clipped - 10 lines]
>
> Could someone please suggest if I am making some mistake here.

Without seeing more of your code, it's hard to tell whether or not there is
an error in there, somewhere.

Although I haven't seen that specific error before, I suggest you give it
another try, this time using the Oracle drivers (supplied with 10g) instead
of the Sun driver you mentioned. More info can be found on the following
page:
http://jcsnippets.atspace.com/java/database/connect-to-oracle-database.html
.

Best regards,

JayCee
--
http://jcsnippets.atspace.com/
a collection of source code, tips and tricks
javadev - 27 May 2006 06:42 GMT
Thanks JayCee

I did try connecting with the drivers that came with 10g and it worked.

Regards
SS


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.