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());
}
}
}
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());
}
}
}