你在插入完毕后,如果你还要做查询操作,连接是不应该关闭的(close()),如果还有问题你在插入完毕后,close()一下连接,然后再生成新的Statement看看

解决方案 »

  1.   

    我的意思你可能理解错了,我是直接执行此程序出现这样的错误。如果我把执行查询的语句换成插入的语句,执行之后我可以从SQL *PLUS里看到数据插入成功了。
      

  2.   

    下面是ORA错误信息,你看看对你有没有帮助。ORA-00600: internal message code, what it is and how to fix it
    Topics
    What is this error? 
    How to fix it 
    5-June-2001
    Author: Melissa Haller  
    --------------------------------------------------------------------------------What causes this error?
    ORA-600 is an internal error generated by the generic kernel code of the Oracle RDBMS software. It is different from other Oracle errors in many ways. The following is a list of these differences. 1. An ORA-600 error may or may not be displayed on the screen. 
    Therefore, screen output should not be relied on for capturing information on this error. Information on ORA-600 errors are found in the database alert and trace files. We recommend that you check these files frequently for database errors. (See the Alert and Trace Files section for more information.) 2. Each ORA-600 error comes with a list of arguments 
    They usually enclosed in square brackets and follow the error on the same line for example: ORA-00600 [14000][51202][1][51200][][] Each argument has a specific meaning which can only be interpreted by an Oracle support analyst. The arguments may also change meaning from version to version therefore customers are not advised to memorize them. 3. Every occurrence of an ORA-600 should be reported to Oracle Support. 
    Unlike other errors, you can not find help text for these errors. Only Oracle technical support should diagnose and take actions to prevent or resolve damage to the database. 4. Each ORA-600 error generates a database trace file. Possible causes include 
    * time-outs, 
    * file corruption, 
    * failed data checks in memory, hardware, memory, or I/O messages, 
    * incorrectly restored files 
    -------------------------------------------------------------------------------How to fix it
    Contact Oracle support with the following information: * events that led up to the error 
    * the operations that were attempted that led to the error 
    * the conditions of the operating system and database at the time of the error 
    * any unusual circumstances that occurred prior to receiving the ORA-00600 message.
    * contents of any trace files generated by the error 
    * the relevant portions of the Alert file 
     
      

  3.   

    谢谢楼上的问题解决了,因为驱动的原因.我把原来的驱动换掉然后马ORACLE9I下的CLASS12.JAR不添加到CLASSPATH中就好了.
      

  4.   

    String sql="select * from vhlmsg";//换成select top 10 * from vhlmsg
       System.out.println("sql:"+sql);
       ResultSet rs=stmt.executeQuery(sql);你一步步的追踪调试,看看问题到底出现在什么地方。你的程序代码没有什么问题。