Activiti 配置Oracle不能自动创建表解决方法
2016-05-26 18:00
1306 查看
使用配置文件创建工作流表
启动报如下错误:
原因是引擎在创建表之前 isTablePresent() 方法 发现 schema 的值为null,所以需要配置属性
重新启动,成功创建表。再次启动又报错
将值改为 大写 即可
作者:itmyhome
<bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration"> <!-- 连接数据库配置 --> <property name="jdbcDriver" value="oracle.jdbc.driver.OracleDriver"></property> <property name="jdbcUrl" value="jdbc:oracle:thin:@localhost:1521:orcl"></property> <property name="jdbcUsername" value="activiti"></property> <property name="jdbcPassword" value="activiti"></property> <!-- 如果表不存在 自动创建 --> <property name="databaseSchemaUpdate" value="true"></property> </bean>
启动报如下错误:
### The error may exist in org/activiti/db/mapping/entity/Property.xml ### The error may involve org.activiti.engine.impl.persistence.entity.PropertyEntity.selectProperty-Inline ### The error occurred while setting parameters ### SQL: select * from ACT_GE_PROPERTY where NAME_ = ? ### Cause: java.sql.SQLException: ORA-00942: 表或视图不存在
原因是引擎在创建表之前 isTablePresent() 方法 发现 schema 的值为null,所以需要配置属性
<property name="databaseSchema" value="activiti"></property>
重新启动,成功创建表。再次启动又报错
Caused by: java.sql.SQLException: ORA-00955: 名称已由现有对象使用
将值改为 大写 即可
<property name="databaseSchema" value="ACTIVITI"></property>
作者:itmyhome
相关文章推荐
- 保留最后的一条数据为Y
- 详解:数据库名、实例名、ORACLE_SID、数据库域名、全局数据库名、服务名
- 查看oracle 用户执行的sql语句历史记录
- Oracle避免全表扫描方式
- oracle sqlplus 常用命令大全
- ORACLE视图添加备注
- oracle sequence的概念及作用
- django oracle 配置
- 有关oracle11g中scott用户被锁的解锁
- Oracle的序列操作
- oracle正则表达式regexp_like的用法详解
- oracle 相关手册
- oracle的TM锁、TX锁
- oracle静默安装文件db_install.rsp详解
- ORACLE RMAN备份及还原
- Linux下静默安装oracle11G
- ORACLE新建表,删除表,设置主键,查询的简单例子
- Navicat Premium 连接 Oracle 数据库
- oracle awr报告对比功能
- 转载:Data Guard Physical Standby Setup in Oracle Database 11g Release 2