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

前端 未结 10 1394
[愿得一人]
[愿得一人] 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:42

    There seems to be some issue with setCLOB() that causes an ORA-00942 under some circumstances when the target table does exist and is correctly privileged. I'm having this exact issue now, I can make the ORA-00942 go away by simply not binding the CLOB into the same table.

    I've tried setClob() with a java.sql.Clob and setCLOB() with an oracle.jdbc.CLOB but with the same result.

    As you say, if you bind as a string the problem goes away - but this then limits your data size to 4k.

    From testing it seems to be triggered when a transaction is open on the session prior to binding the CLOB. I'll feed back when I've solved this...checking Oracle support.

提交回复
热议问题