Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 16 May 2003 @ 03:48:06 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   Trying to Connect to TDATA using JDBC
 
From:   Taha, Sam

Hello,

Would appreciate some help understanding an error that I'm getting while trying to connect to teradata on my PC.

First of all, I set my environment variable CLASSPATH to point to the teradata.jar library. Then I start Teradata and the JDBC gateway running at the default port 7500 (i tried other ports too).

When I run my java app, I get this error:

Exception:
 java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read
Closing session
java.sql.SQLException: [NCR] [Teradata JDBC Gateway] : I/O Error, Socket
closed.  java.net.SocketException: Connection reset by peer: JVM_recv in
socket input stream read

When I check the gateway log window, I see that it's being "hit" by the application, but it shows this error everytime I try to connect:

1736: E011: recv failed ioctl error = 10038, session closed.

I have a feeling that my app can see the gateway, but the gateway can't see Teradata? just my guess.

My code looks like this:

...
        try {
            Class.forName("com.ncr.teradata.TeraDriver");
            String localURL = ("jdbc:teradata://localhost:7500/DemoTDAT"); // V2R5.0
            Connection databaseConnection = DriverManager.getConnection(localURL, "dbc", "dbc");
            System.out.println("Connection established successfuly!");
            databaseConnection.close();
        ....

Any help would be greatly appreciated.


Thanks,

Sam Taha



     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023