Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi ksolos, I hv solved the problem

Status
Not open for further replies.

somdat

Programmer
Apr 24, 2003
3
IN
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:eek:racle:thin:mad: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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top