When I try to connect to my Oracle database, I recieve this error:
ORA-12569: TNS
acket checksum failure .
I searched the web for an explanation, and got this:
The connection has persisted. What should I do? What does "turning on tracing" mean?
My code:
Thanks!
--Chessbot
"See the TURTLE of enormous girth!"
-- Stephen King, The Dark Tower series
ORA-12569: TNS
I searched the web for an explanation, and got this:
ORA-12569: TNSacket 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