• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a problem about oracle

 
qu shihong
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
package gctest;
import oracle.jdbc.driver.OracleDriver;
import java.sql.*;
import java.util.Date;
public class Test1 {
public static void main(String[] args) {
try{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con = DriverManager.getConnection("jdbc racle:thin:@127.0.0.1:1521:ora", "quxuekuan", "password");
PreparedStatement pstmt = con.prepareStatement("select * from student");
pstmt.executeQuery();
con.close();
}
catch(Exception e){
e.printStackTrace();
}
}
}
---------------------------------------------
java.sql.SQLException: ORA-00600: 内部错误代码,参数: [ttcgcshnd-1], [0], [], [], [], [], [], []

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1311)
at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:797)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1608)
at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:1758)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1805)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:322)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:280)
at gctest.Test1.main(Test1.java:13)
-----------------------------------------
line 13 :pstmt.executeQuery();
[ Edited by Dave to remove real-looking IP and user/password ]
[ February 28, 2003: Message edited by: David O'Meara ]
 
Dorj Galaa
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.orafaq.com/error/ora-00600.htm
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic