This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Connection refused using datadirect jdbc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Connection refused using datadirect jdbc" Watch "Connection refused using datadirect jdbc" New topic
Author

Connection refused using datadirect jdbc

Graham Thorpe
Ranch Hand

Joined: Mar 25, 2002
Posts: 265
Hi every body

when i try this code the foloowing error is showing"connection refused the specified SID
<ORCL> was not recognised by the oracle server"
import java.sql.*;
import java.util.*;
import java.io.*;
public class connect
{

public static void main(String args[])
{
try
{
new connect().load();
}catch(Exception e)
{
System.out.println("Exception e:"+e);
}


}
public void load() throws Exception
{
try
{
Class.forName("com.ddtek.jdbc.oracle.OracleDriver");
Connection con=DriverManager.getConnection("jdbc atadirect racle://SUBRA:1521");

}
catch(ClassNotFoundException e)
{
System.out.println("e:"+e);
}catch(SQLException e){
System.out.println(e.getMessage());
}catch(Exception e){
System.out.println(e.getMessage());
}

}
}
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
glkrrr
I asked you read our naming policy yesterday. Please do so now and change you display name. Or we'll be forced to lock your account and you'll have to reregister completely.
Thanks


Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection refused using datadirect jdbc
 
Similar Threads
JTDS jdbc driver
problem connecting to postgres 8.2.3
problem to create instance
not able to connect with 10g
Connction faile please help me