• Post Reply Bookmark Topic Watch Topic
  • New Topic

User/system DSN in Ubuntu 12.04 for Oracle XE

 
shivdhwaj pandey
Ranch Hand
Posts: 67
Java PHP Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!