File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes servlet & type4 driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "servlet & type4 driver" Watch "servlet & type4 driver" New topic

servlet & type4 driver

kedar parundekar
Ranch Hand

Joined: May 10, 2006
Posts: 40

In following program I am using type4 driver & servlet
when I run the application then drivers are loaded as well as connection is established properly.
but run time error is
java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1],
[0], [], [], [], [], [], []
at oracle.jdbc.dbaccess.DBError.throwSqlException(

Can any one help me why this error?
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;

public class JdbcServlet extends HttpServlet
Connection con=null;
Statement stmt=null;
ResultSet rst=null;

public void init(ServletConfig config) throws ServletException
Class.forName("oracle.jdbc.driver.OracleDriver");// Type 4 Driver
System.out.println("The Driver are loaded");

con = DriverManager.getConnection("jdbc racle:thin:@dbs:1521 rcl","java","java");
System.out.println("The Connection is established");

catch (Exception e)

public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException

PrintWriter pw=res.getWriter();


String sql="Select * from logkedar";


//System.out.println("In Dispaly");
System.out.println("ID "+rst.getInt("id")+"\tNAME"+rst.getString("name")+"\tPASSWORD"+rst.getString("pwd"));

catch (Exception e)
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Looks like you've got some internal error in your Oracle database. I don't think these errors are cause by a bug in your JDBC code. YOu can find out what an ORA-00600 means via metalink

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Jan Cumps

Joined: Dec 20, 2006
Posts: 2565

Confirming Paul's remark:

It's an internal error. It's not a JDBC error.

If you have an Oracle Metalink account, you can open support document 153788.1

This active document helps you to locate the internal error.

I looked up your error ttcgcshnd-1:

Oracle is checking that the local character set id is valid as part
of the process to do character data conversions between different
character sets.

This error is raised when the local character set id is found to
be invalid.


Regards, Jan
[ February 28, 2007: Message edited by: Jan Cumps ]

OCUP UML fundamental and ITIL foundation
I agree. Here's the link:
subject: servlet & type4 driver
It's not a secret anymore!