Two Laptop Bag*
The moose likes JDBC and the fly likes Strange Oracle 9i connection problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Strange Oracle 9i connection problem" Watch "Strange Oracle 9i connection problem" New topic
Author

Strange Oracle 9i connection problem

Gregory Garrison
Ranch Hand

Joined: Oct 05, 2001
Posts: 107
get the following :
SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
I only get this when running from win2000 to Linux. While on the linux box this runs fine exactly as stated below - no change in code between Win2K and Linux.
Here's the code:
import java.sql.*;
public class jdbcTest {

public static void main(String args[]) {
String url="jdbc racle:thin:@192.168.0.22:1521:test1";
Statement stmt;
Connection con;
String createString = "select * from dept";
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
} catch (java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
}
try {
con=DriverManager.getConnection(url,"scott","tiger");
stmt=con.createStatement();
ResultSet rs = stmt.executeQuery(createString);
while(rs.next()) System.out.println(rs.getString(1));

stmt.close();
con.close();
}
catch(SQLException e) {
System.err.println("SQLException: " + e.getMessage());
}
}
}
Looked at the error message on OTN and they request that I submit a bug report. The driver class is class111.zip.
Any ideas?
[ March 19, 2002: Message edited by: Gregory Garrison ]
Ray Lim
Greenhorn

Joined: Jan 10, 2002
Posts: 15
Which container are you using?
I'm getting a similiar error in Bea Weblogic 6.
I found a reference link.
http://castor.exolab.org/list-archive/msg20428.html
That refers to using "ojdbc1.4.jar" instead of classes<ver>.jar but I can't find a place to download ojdbc1.4.jar. So I'm not exactly sure if this is a fix.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Strange Oracle 9i connection problem