Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strange Oracle 9i connection problem

 
Gregory Garrison
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic