This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

jdbc  RSS feed

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
when i run the following code from eclipse


import java.sql.*;

public class db
{
Connection conn;

public static void main(String[] args)
{
new db();
}

public db()
{
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
System.out.println("loaded successfully1");

String url = "jdbc:oracle:thin:@localhost:1521:PLSExtProc";
System.out.println("loaded successfully2");
conn = DriverManager.getConnection(url, "SYSTEM", "manager");
System.out.println("loaded successfully3");
}
catch (ClassNotFoundException ex) {System.out.println(ex.getMessage());}
// catch (IllegalAccessException ex) {System.err.println(ex.getMessage());}
// catch (InstantiationException ex) {System.err.println(ex.getMessage());}
catch (SQLException ex) {System.out.println(ex.getMessage());}
}
}


am getting error as:


loaded successfully1
loaded successfully2
Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135290880)(ERR=12500)(ERROR_STACK=(ERROR=(CODE=12500)(EMFI=4))(ERROR=(CODE=12538)(EMFI=4))(ERROR=(CODE=12560)(EMFI=4))(ERROR=(CODE=508)(EMFI=4))(ERROR=(BUF=''))))

pleade help.
thanks
 
Marshal
Posts: 67197
169
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shabarish vai, please read my reply to you in your previous post regarding your choice of subjects.

The title "jdbc" in a forum of all JDBC questions is of little value.
 
Java Cowboy
Posts: 16084
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see a whole list of Oracle error codes there (12500, 12538, 12560, 508). Go to for example http://www.ora-code.com/ or look in the Oracle documentation to find out what those error codes mean; they will most likely give you a clue to what is going wrong.

Or just try typing in for example "ORA-12538" in Google and see what you find.
[ June 24, 2008: Message edited by: Jesper Young ]
 
If you are using a wood chipper, you are doing it wrong. Even on this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!