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 Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Error" Watch "Error" New topic


Red Rose

Joined: Dec 28, 2011
Posts: 4

Hi Team,

While executing above program i am getting following error, kindly help me to clear that error

java.sql.SQLException: [Oracle][ODBC][Ora]ORA-00907: missing right parenthesis
java.sql.SQLException: [Oracle][ODBC][Ora]ORA-00907: missing right parenthesis
at sun.jdbc.odbc.JdbcOdbc.createSQLException(
at sun.jdbc.odbc.JdbcOdbc.standardError(
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(
at sun.jdbc.odbc.JdbcOdbcStatement.execute(
at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(
at database.CreateTable.main(
BUILD SUCCESSFUL (total time: 0 seconds)
Martin Vajsar

Joined: Aug 22, 2010
Posts: 3733

Welcome to the Ranch!

First of all, do not use ODBC. Use Oracle's JDBC driver, it performs better and is more supported.

Anyway, your error has nothing to do with Java. Try running the statement in SQL*Plus or something similar, you'll get the same error message. The problem is that the INT type in Oracle is a synonym for NUMBER(38) and cannot take any precision. You probably wanted to use NUMBER(20) instead.
I agree. Here's the link:
subject: Error
It's not a secret anymore!