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


i getting below exception, when trying insert batch of rows existing table

ora-00942: table or view not exist

i can confirm table exists in db , can insert data table using oracle sql developer. when try insert rows using preparedstatement in java, throwing table not exist error.

please find stack trace of error below

java.sql.sqlexception: ora-00942: table or view not exist      @ oracle.jdbc.dbaccess.dberror.throwsqlexception(dberror.java:134)     @ oracle.jdbc.ttc7.ttioer.processerror(ttioer.java:289)      @ oracle.jdbc.ttc7.oall7.receive(oall7.java:573)      @ oracle.jdbc.ttc7.ttc7protocol.dooall7(ttc7protocol.java:1889)     @ oracle.jdbc.ttc7.ttc7protocol.parseexecutefetch(ttc7protocol.java:1093)     @ oracle.jdbc.driver.oraclestatement.executenonquery(oraclestatement.java:2047)     @ oracle.jdbc.driver.oraclestatement.doexecuteother(oraclestatement.java:1940)      @ oracle.jdbc.driver.oraclestatement.doexecutewithtimeout>>(oraclestatement.java:2709)     @ oracle.jdbc.driver.oraclepreparedstatement.executeupdate(oraclepreparedstatement.java:589)     @ quotecopy.dbconnection.insertintodestinationdb(dbconnection.java:591)     @ quotecopy.quotecopier.main(quotecopier.java:72)  

can suggest reasons error ?

update : issue solved

there no problem database connection properties or table or view name. solution problem strange. 1 of columns trying insert of clob type. had lot of trouble handling clob data in oracle db before, gave try replacing clob setter temporary string setter , same code executed out problems , rows correctly inserted!!!.

ie. peparedstatement.setclob(columnindex, clob)

was replaced with

peparedstatement.setstring(columnindex, "string")

why error table or view exist error throws error in inserting clob data. of please explain ?

thanks lot answers , comments.

oracle report error if table exists, don't have privileges on it. if sure table there, check grants.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -