Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

create table and insert value in oracle 10g

 
akashkum singh
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ERROR
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
Sheriff
Posts: 3752
62
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?)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic