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 User/system DSN in Ubuntu 12.04 for Oracle XE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "User/system DSN in Ubuntu 12.04 for Oracle XE" Watch "User/system DSN in Ubuntu 12.04 for Oracle XE" New topic
Author

User/system DSN in Ubuntu 12.04 for Oracle XE

shivdhwaj pandey
Ranch Hand

Joined: Nov 12, 2011
Posts: 63

I am a new user of ubuntu 12.04 and installed oracle database XE in it but need to connect it to my simple JDBC program where it requires user dsn .
I am not able to find any solution on the net as tried last few hours and want to complete the project as soon as possible.
Kindly guide me to create a user/System dsn in ubuntu 12.04 for oracle XE.


with regards,
Shivdhway Pandey
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3610
    
  60

It looks like you're trying to use ODBC, but the correct way would be to connect to the database using Oracle's own JDBC driver. You don't need DSN for that. You'd just modify the connection string in your program. Have a look at oracle xe jdbc connect string to find out what the connect string should look like.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: User/system DSN in Ubuntu 12.04 for Oracle XE