ora-00942

Accessing another user's table within an Oracle Stored Procedure

放肆的年华 提交于 2019-11-26 23:14:29
问题 I'm writing a stored procedure to copy data from one user's table to another schema. Basically, it is a series of INSERT .. SELECT statements such as this: INSERT INTO GESCHAEFTE SELECT * FROM TURAT03.GESCHAEFTE WHERE kong_nr = 1234; This works fine when issueing from sqlplus (or TOAD for me ;-)) so I know that I have sufficient privileges, but when this is part of stored procedure like this: CREATE OR REPLACE FUNCTION COPY_KONG (pKongNr IN NUMBER) RETURN NUMBER AUTHID CURRENT_USER IS BEGIN

Spring Batch Framework - Auto create Batch Table

倾然丶 夕夏残阳落幕 提交于 2019-11-26 23:12:48
问题 I just created a batch job using Spring Batch framework, but I don't have Database privileges to run CREATE SQL. When I try to run the batch job I hit the error while the framework tried to create TABLE_BATCH_INSTANCE. I try to disable the <jdbc:initialize-database data-source="dataSource" enabled="false"> ... </jdbc:initialize-database> But after I tried I still hit the error org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT JOB_INSTANCE_ID,

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

拜拜、爱过 提交于 2019-11-26 22:57:56
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 I can confirm that the table exists in db and I can insert data to that table using oracle sql developer. But when I try to insert rows using preparedstatement in java, its throwing table does not exist error. Please find the stack trace of error below java.sql.SQLException: ORA-00942: table or view does not exist at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289) at oracle.jdbc.ttc7.Oall7

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

戏子无情 提交于 2019-11-26 08:32:03
问题 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 I can confirm that the table exists in db and I can insert data to that table using oracle sql developer. But when I try to insert rows using preparedstatement in java, its throwing table does not exist error. Please find the stack trace of error below java.sql.SQLException: ORA-00942: table or view does not exist at oracle.jdbc.dbaccess.DBError.throwSqlException