ENGINE-03004 Exception while executing Database Operation 'INSERT JobDefinitionEntity'

We are trying to migrate from Activiti 5.23 to Camunda 7.15. We have followed the instructions from Camunda Best Practices - Operating Camunda but we have an error when starting application. My understanding is that deployment process finds timer event and tries to insert it into ACT_RU_JOBDEF but it says that Table or View do not exist but table is in the db.

StackTrace:
Caused by: org.apache.ibatis.exceptions.PersistenceException:

Error updating database. Cause: java.sql.SQLSyntaxErrorException: ORA-00942: Tabelle oder View nicht vorhanden

The error may exist in org/camunda/bpm/engine/impl/mapping/entity/JobDefinition.xml

The error may involve org.camunda.bpm.engine.impl.persistence.entity.JobDefinitionEntity.insertJobDefinition-Inline

The error occurred while setting parameters

SQL: insert into ACT_RU_JOBDEF ( ID_, PROC_DEF_ID_, PROC_DEF_KEY_, ACT_ID_, JOB_TYPE_, JOB_CONFIGURATION_, JOB_PRIORITY_, SUSPENSION_STATE_, TENANT_ID_, DEPLOYMENT_ID_, REV_ ) values ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 1 )

Cause: java.sql.SQLSyntaxErrorException: ORA-00942: Tabelle oder View nicht vorhanden

at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:199)
at org.apache.ibatis.session.defaults.DefaultSqlSession.insert(DefaultSqlSession.java:184)
at org.camunda.bpm.engine.impl.db.sql.DbSqlSession.executeInsertEntity(DbSqlSession.java:359)
at org.camunda.bpm.engine.impl.db.sql.SimpleDbSqlSession.insertEntity(SimpleDbSqlSession.java:85)
at org.camunda.bpm.engine.impl.db.AbstractPersistenceSession.executeDbOperation(AbstractPersistenceSession.java:44)
at org.camunda.bpm.engine.impl.db.sql.SimpleDbSqlSession.executeDbOperations(SimpleDbSqlSession.java:60)
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.flushDbOperations(DbEntityManager.java:341)
... 374 more

Caused by: java.sql.SQLSyntaxErrorException: ORA-00942: Tabelle oder View nicht vorhanden

at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:509)
at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:461)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1104)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:553)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:269)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:655)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:270)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:91)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:970)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1205)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3666)
at oracle.jdbc.driver.T4CPreparedStatement.executeInternal(T4CPreparedStatement.java:1426)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3778)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1081)
at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)
at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)
at jdk.internal.reflect.GeneratedMethodAccessor124.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.apache.ibatis.logging.jdbc.PreparedStatementLogger.invoke(PreparedStatementLogger.java:59)
at com.sun.proxy.$Proxy292.execute(Unknown Source)
at org.apache.ibatis.executor.statement.PreparedStatementHandler.update(PreparedStatementHandler.java:47)
at org.apache.ibatis.executor.statement.RoutingStatementHandler.update(RoutingStatementHandler.java:74)
at org.apache.ibatis.executor.SimpleExecutor.doUpdate(SimpleExecutor.java:50)
at org.apache.ibatis.executor.BaseExecutor.update(BaseExecutor.java:117)
at org.apache.ibatis.executor.CachingExecutor.update(CachingExecutor.java:76)
at org.apache.ibatis.session.defaults.DefaultSqlSession.update(DefaultSqlSession.java:197)
... 380 more

Caused by: Error : 942, Position : 12, Sql = insert into ACT_RU_JOBDEF (
ID_,
PROC_DEF_ID_,
PROC_DEF_KEY_,
ACT_ID_,
JOB_TYPE_,
JOB_CONFIGURATION_,
JOB_PRIORITY_,
SUSPENSION_STATE_,
TENANT_ID_,
DEPLOYMENT_ID_,
REV_
)
values (
:1 ,
:2 ,
:3 ,
:4 ,
:5 ,
:6 ,
:7 ,
:8 ,
:9 ,
:10 ,
1
), OriginalSql = insert into ACT_RU_JOBDEF (
ID_,
PROC_DEF_ID_,
PROC_DEF_KEY_,
ACT_ID_,
JOB_TYPE_,
JOB_CONFIGURATION_,
JOB_PRIORITY_,
SUSPENSION_STATE_,
TENANT_ID_,
DEPLOYMENT_ID_,
REV_
)
values (
?,
?,
?,
?,
?,
?,
?,
?,
?,
?,
1
), Error Msg = ORA-00942: Tabelle oder View nicht vorhanden

Table Definition from DB
`-- auto-generated definition
create table ACT_RU_JOBDEF (
ID_ NVARCHAR2(64) not null primary key,
REV_ NUMBER,
PROC_DEF_ID_ NVARCHAR2(64),
PROC_DEF_KEY_ NVARCHAR2(255),
ACT_ID_ NVARCHAR2(255),
JOB_TYPE_ NVARCHAR2(255) not null,
JOB_CONFIGURATION_ NVARCHAR2(255),
SUSPENSION_STATE_ NUMBER,
JOB_PRIORITY_ NUMBER(19),
TENANT_ID_ NVARCHAR2(64),
DEPLOYMENT_ID_ NVARCHAR2(64) )

/ create index ACT_IDX_JOBDEF_PROC_DEF_ID on ACT_RU_JOBDEF (PROC_DEF_ID_)
/ create index ACT_IDX_JOBDEF_TENANT_ID on ACT_RU_JOBDEF (TENANT_ID_, 0) / `

JOB DEFINITION INSERT
<insert id="insertJobDefinition" parameterType="org.camunda.bpm.engine.impl.persistence.entity.JobDefinitionEntity"> insert into ${prefix}ACT_RU_JOBDEF ( ID_, PROC_DEF_ID_, PROC_DEF_KEY_, ACT_ID_, JOB_TYPE_, JOB_CONFIGURATION_, JOB_PRIORITY_, SUSPENSION_STATE_, TENANT_ID_, DEPLOYMENT_ID_, REV_ ) values ( #{id ,jdbcType=VARCHAR}, #{processDefinitionId, jdbcType=VARCHAR}, #{processDefinitionKey, jdbcType=VARCHAR}, #{activityId, jdbcType=VARCHAR}, #{jobType, jdbcType=VARCHAR}, #{jobConfiguration, jdbcType=VARCHAR}, #{jobPriority, jdbcType=BIGINT}, #{suspensionState, jdbcType=INTEGER}, #{tenantId, jdbcType=VARCHAR}, #{deploymentId, jdbcType=VARCHAR}, 1 ) </insert>

We are using oracle ojdbc 19.8.0.0.

When I try to deploy model with Camunda Modeler on an endpoint run buy camunda bpm run platform which is configured to run on same spring.datasource it works just fine without any errors and record is stored into ACT_RU_JOBDEF successfully .

Does anyone have any idea what is causing this issue?

Thanks