• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Connecting to Oracle across the Internet

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
When I'm in building A my software allows me connect to an Oracle db on the intranet. When I'm in building B trying to access the same Oracle db across Internet (no firewalls at either end) the connection fails, with a message of: SQLException: The Network Adapter could not establish the connection. What is the magic to connect across the Internet to an Oracle db?
Thanks Greg
code snip...
String driver="oracle.jdbc.driver.OracleDriver";
String url="jdbc racle:thin:SUPER/[email protected]:1521:sid";
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection(url);
...
 
I didn't say it. I'm just telling you what this tiny ad said.
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic