Forums Register Login

Connection refused using datadirect jdbc

+Pie Number of slices to send: Send
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());
}

}
}
+Pie Number of slices to send: Send
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
Everybody's invited. Even this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1264 times.
Similar Threads
not able to connect with 10g
problem to create instance
problem connecting to postgres 8.2.3
Connction faile please help me
JTDS jdbc driver
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:58:27.