• Post Reply Bookmark Topic Watch Topic
  • New Topic

create table and insert value in oracle 10g

akashkum singh
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.sql.SQLException: ORA-00922: missing or invalid option

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:207)
at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:946)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1169)
at oracle.jdbc.driver.OracleStatement.executeUpdateInternal(OracleStatement.java:1615)
at oracle.jdbc.driver.OracleStatement.executeUpdate(OracleStatement.java:1580)
at core.CreateTableOracle.main(CreateTableOracle.java:19)

Martin Vajsar
Posts: 3752
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note: please use code tags next time. The code is much more readable and it also prevents some sequences of characters from being unsuitably converted into smilies (:o becomes , for example).

You've split the table create statement into substrings, but have you had a look at the resulting statement? I'd say this is what you get: You're missing the left parenthesis between "jungle" and "id".

It might be easier to create the table outside of the application, say using some SQL script. It's probably the usual way, at least in the Oracle world (you need to create the user account beforehand anyway, so why not to create the entire schema at that time too?)
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!