This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 and Relational Databases
Bookmark "User/system DSN in Ubuntu 12.04 for Oracle XE" Watch "User/system DSN in Ubuntu 12.04 for Oracle XE" New topic

User/system DSN in Ubuntu 12.04 for Oracle XE

shivdhwaj pandey
Ranch Hand

Joined: Nov 12, 2011
Posts: 67

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

Joined: Aug 22, 2010
Posts: 3718

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.
Have you checked out Aspose?
subject: User/system DSN in Ubuntu 12.04 for Oracle XE
It's not a secret anymore!