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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ORA-12569: TNS:packet checksum failure on connection

Status
Not open for further replies.

chessbot

Programmer
Mar 14, 2004
1,524
US
When I try to connect to my Oracle database, I recieve this error:

ORA-12569: TNS:packet checksum failure .

I searched the web for an explanation, and got this:
ORA-12569: TNS:packet checksum failure
Cause: The data received is not the same as the data sent.

Action: Attempt the transaction again. If the error is persistent, turn on tracing and reexecute the operation.

The connection has persisted. What should I do? What does "turning on tracing" mean?

My code:

Code:
import java.sql.*;
public class SQL1
{
  public static void main(String[] args)
  {
    String location = "jdbc:oracle:oci8:@//address/";
    String user = "username";
    String pass = "password";

    try
    {
      DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    }
    catch (Exception e)
    {
    System.out.println("Failed to load driver: " + e.getMessage());
    }
    Statement stmt = null;
    Connection con = null;
    try
    {
      con = DriverManager.getConnection(location,user,pass);
      stmt = con.createStatement();
    }
    catch (Exception e)
    {
      System.out.println("Can't connect to " + location + ": " + e.getMessage());
    }

  // Do stuff with stmt and con

  }
}

Thanks!

--Chessbot

"See the TURTLE of enormous girth!"
-- Stephen King, The Dark Tower series
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top