• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to connect to a remote database

 
Dharmesh Gangani
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys... anybody can help me on this...
I need to write a class which can connect to an (oracle) database (remote / local).
For the local database, i dont have a problem. But how do i connect to oracle db residing on a remote server.
Any help will be appertiated.
[ February 20, 2004: Message edited by: Dharmesh Gangani ]
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If it's from a desktop or webapp type application, in the connection URL just provide the hostname/ip address instead of saying localhost/127.0.0.1. Nothing else should change.
If you are trying to do this from an Applet it becomes more difficult.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic