Getting an exception ORA-00942: table or view does not exist - when inserting into an existing table

前端 未结 10 1388
[愿得一人]
[愿得一人] 2020-11-28 15:17

I am getting below exception, when trying to insert a batch of rows to an existing table

ORA-00942: table or view does not exist

<
10条回答
  •  鱼传尺愫
    2020-11-28 15:51

    There was no problem with my database connection properties or with my table or view name. The solution to the problem was very strange. One of the columns that I was trying insert was of Clob type. As I had a lot of trouble handling clob data in oracle db before, gave a try by replacing the clob setter with a temporary string setter and the same code executed with out any problems and all the rows were correctly inserted!!!.

    ie. peparedstatement.setClob(columnIndex, clob)

    was replaced with

    peparedstatement.setString(columnIndex, "String")

提交回复
热议问题