File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Could not establish connection to Oracle 9i Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Could not establish connection to Oracle 9i" Watch "Could not establish connection to Oracle 9i" New topic

Could not establish connection to Oracle 9i

Mingwei Jiang
Ranch Hand

Joined: Feb 19, 2004
Posts: 63
Dear all,

I met a database connection problem. I'm doing a project offshore, and it's fine while I try to connect to the Oracle 9i database here. But when deliver the code to the on site to have a test. It gives me a

And I've asked the on site to use other tools to test the connectivity first. It works fine, but using the java JDBC, it gives me such exception. I ensure the parameters are configured properly except I use IP address of the server at offshore, but they configured the server name on site.
Debopam Poddar
Ranch Hand

Joined: Jun 21, 2005
Posts: 49

Just chk whether ports are open from offshore or not!!!
Chengwei Lee
Ranch Hand

Joined: Apr 02, 2004
Posts: 884
Check for firewall issues. The database server should be behind a firewall, normally.

SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
I agree. Here's the link:
subject: Could not establish connection to Oracle 9i
Similar Threads
how get the database connection in eclipse IDE
Type 4
Problem connecting to database
Connection Error:
datasource connection in admin console unsuccessful