File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Connecting to Oracle across the Internet 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 "Connecting to Oracle across the Internet" Watch "Connecting to Oracle across the Internet" New topic

Connecting to Oracle across the Internet

Greg Kearn

Joined: Dec 06, 2001
Posts: 20
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/user@";
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection(url);
I agree. Here's the link:
subject: Connecting to Oracle across the Internet
It's not a secret anymore!