【发布时间】:2018-03-16 13:57:13
【问题描述】:
jdbcTemplate.execute("alter table UKIADATA rename to UKIADATA_temp");
jdbcTemplate.execute("alter table UKIADATA_2 rename to UKIADATA");
jdbcTemplate.execute("alter table UKIADATA_temp rename to UKIADATA_2");
logger.info("Tables swapped.");
我收到错误 SQL [alter table UKIADATA rename to UKIADATA_temp]; ORA-00054: 资源繁忙并使用指定的 NOWAIT 获取或超时已过期 ;嵌套异常是 java.sql.SQLException: ORA-00054: resource busy and acquire with NOWAIT specified or timeout expired,
除此之外,您能帮我如何在这段代码中插入提交语句。
【问题讨论】:
标签: spring oracle jdbctemplate alter autocommit