Hi ksolos, I hv solved the problem of Oracle connection using jdbc by specifying the classes12.zip file explicitly in the classpath.the program is getting compiled now.
however as soon as i run the program,that is I try to connect to the specified server the following SQLException is given:End of TNS data channel
Is this a server related or network related problem?
This is the code that i wrote
----------------------------------------------------------
import java.sql.*;
import java.util.*;
import java.io.*;
public class myConnection3
{
public static void main(String args[])
{
Statement st;
Connection con;
ResultSet rs;
try
{
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
System.out.println("before"
;
con = DriverManager.getConnection("jdbc
racle:thin
204.170.59.3:1521:ORCL","userwtc","dossier"
;
st=con.createStatement();
System.out.println("Connected"
;
}
catch(Exception e){
System.out.println(e);
}
}
}
-------------------------------------
can somebody help me please
however as soon as i run the program,that is I try to connect to the specified server the following SQLException is given:End of TNS data channel
Is this a server related or network related problem?
This is the code that i wrote
----------------------------------------------------------
import java.sql.*;
import java.util.*;
import java.io.*;
public class myConnection3
{
public static void main(String args[])
{
Statement st;
Connection con;
ResultSet rs;
try
{
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
System.out.println("before"
con = DriverManager.getConnection("jdbc
st=con.createStatement();
System.out.println("Connected"
}
catch(Exception e){
System.out.println(e);
}
}
}
-------------------------------------
can somebody help me please