Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > Java Databases
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Java Databases Discussion specific to working with Java Databases. For other Java topics, please see related Java forums. For database discussions not specific to Java, please see the Database category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 30th, 2004, 03:09 PM
Registered User
Join Date: Mar 2004
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Exception connecting to Oracle Database with JDBC

I am quite new to JDBC and Oracle so please be patient with me.
I am trying to connect to an Oracle Database but I get an Exception: COnnection Refused
Here is what I am doing:
String JdbcDriver= "oracle.jdbc.driver.OracleDriver";
catch(Exception ex)
System.out.println("Can't find the driver");
System.out.println("Trying to connect...");
String JdbcURL=""jdbc:oracle:thin:aaa/aaa123@";
catch (Exception e)
exceptionMessage="SQL exception: "+e.getMessage();

When executing the getConnection method, I get the following exception:
Connection refused(DESCRIPTION=(TMP=)(V
SNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CO DE=12505)(EMFI=4))))

Anyone can help me or at least give me a hint about where to look?

Thank you in advance.

  #2 (permalink)  
Old March 31st, 2004, 04:42 AM
Registered User
Join Date: Mar 2004
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts

Problem solved. The database instance was incorrect. It was not siu but nr!


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception while loading JDBC driver dshashi1234 Java Databases 0 December 21st, 2006 02:34 AM
Connecting to oracle database in struts Manvi Struts 3 August 7th, 2006 10:53 PM
Connecting Oracle Database with an ASP page krisvamshi Oracle ASP 3 November 14th, 2004 05:56 PM
Creating and connecting in a Oracle Database cutovoi Excel VBA 2 February 4th, 2004 07:06 PM
Connecting an oracle database kelitu Oracle 0 September 4th, 2003 09:18 AM

All times are GMT -4. The time now is 10:26 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.