I just created a batch job using the Spring Batch framework, but I don't have database privileges to run CREATE SQL. When I try to start a batch job, I find an error while the environment is trying to create TABLE_BATCH_INSTANCE. I'm trying to disconnect
<jdbc:initialize-database data-source="dataSource" enabled="false"> ... </jdbc:initialize-database>
But after I tried, I still got the error
org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [SELECT JOB_INSTANCE_ID, JOB_NAME from BATCH_JOB_INSTANCE where JOB_NAME = ? and JOB_KEY = ?]; nested exception is java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
In any case, you can disable SQL, I just want to check if your reader and processor are working correctly.
spring database spring-batch privileges ora-00942
Einn hann
source share