- 浏览: 7205 次
- 性别:
- 来自: 南京
文章分类
最新评论
mybatis未使用spring集成。
现象:
1.当执行查询时报
### Error querying database. Cause: java.sql.SQLException: ORA-01000: maximum open cursors exceeded
2.检查业务服务器与数据库之间的连接数:正常;
3.使用sys用户登录数据库,执行SQL
select o.sid, osuser, machine, count(*) num_curs
from v$open_cursor o, v$session s
where o.sid=s.sid
group by o.sid, osuser, machine
order by num_curs desc;
发现游标数的确打开很多。
解决办法:
在mybatis配置文件中设置参数defaultExecutorType值为SIMPLE或删除该配置项。
文档解释:
Configures the default executor. SIMPLE executor does nothing special. REUSE executor
reuses prepared statements. BATCH executor reuses statements and batches updates.
REUSE/BATCH会重用preparestatement,最终导致此问题。
影响:有性能损失,mybatis的此配置本用于提高性能。
现象:
1.当执行查询时报
### Error querying database. Cause: java.sql.SQLException: ORA-01000: maximum open cursors exceeded
2.检查业务服务器与数据库之间的连接数:正常;
3.使用sys用户登录数据库,执行SQL
select o.sid, osuser, machine, count(*) num_curs
from v$open_cursor o, v$session s
where o.sid=s.sid
group by o.sid, osuser, machine
order by num_curs desc;
发现游标数的确打开很多。
解决办法:
在mybatis配置文件中设置参数defaultExecutorType值为SIMPLE或删除该配置项。
文档解释:
Configures the default executor. SIMPLE executor does nothing special. REUSE executor
reuses prepared statements. BATCH executor reuses statements and batches updates.
REUSE/BATCH会重用preparestatement,最终导致此问题。
影响:有性能损失,mybatis的此配置本用于提高性能。
发表评论
-
greenplum
2018-09-01 22:12 0https://www.cnblogs.com/liuyung ... -
博客框架
2017-08-28 08:37 0wordpress http://www.imooc.com/ ... -
ansible
2017-03-17 16:34 0http://ansible-tran.readthedocs ... -
dubbo代码学习
2016-05-04 16:08 0http://attend.iteye.com/blog/13 ... -
httl vs velocity
2016-04-26 15:33 0httl与velocity相比可能仅仅就是语法的简单,但是功能 ... -
velocity
2016-04-26 13:59 0http://my.oschina.net/crazyharr ... -
activemq
2016-04-19 16:22 0http://shmilyaw-hotmail-com.ite ... -
cassandra
2016-04-14 15:19 0检查集群状态 bin/nodetool -host 192.1 ... -
quartz
2016-04-14 11:37 0任务持久化 quartz org.quartz.impl.jd ... -
redis关键技术
2016-04-14 11:32 01.优先级队列 lpush/brpop rpush/blpop ... -
zookeeper总结
2016-04-12 08:30 0http://nileader.blog.51cto.com/ ... -
使用wiremock和httl来mock http服务
2016-03-21 16:38 0WireMock http://wiremock.org/ h ... -
tomcat 类加载顺序
2016-01-28 16:49 3881.$JAVA_HOME/jre/lib/ext/*.jar ... -
hibernate
2015-05-22 11:00 01.hbm2ddl时使输出的mysql建表语句设置ENGINE ... -
mysql
2015-05-22 10:39 0字符集设置: 服务端my.ini文件中mysql/mysqld ... -
hibernate
2015-05-21 18:11 0Content.hbm.xml <hibernate-m ... -
restful最佳实践
2015-05-08 15:48 0http://blog.jobbole.com/41233/ ... -
spring mysql 事务失效问题
2015-05-08 15:15 0http://blog.chinaunix.net/uid-2 ... -
spring 事务
2015-05-04 18:04 0private PlatformTransaction ... -
spring placeholder
2015-04-25 18:06 0public class SpringContext impl ...
相关推荐
本工程为 MyBatis-Plus 的官方示例,项目结构如下: mybatis-plus-sample-quickstart: 快速开始示例 mybatis-plus-sample-quickstart-springmvc: 快速开始示例(Spring MVC版本) mybatis-plus-sample-reduce-...
赠送jar包:mybatis-plus-boot-starter-3.5.1.jar; 赠送原API文档:mybatis-plus-boot-starter-3.5.1-javadoc.jar; 赠送源代码:mybatis-plus-boot-starter-3.5.1-sources.jar; 赠送Maven依赖信息文件:mybatis-...
赠送jar包:mybatis-plus-extension-3.5.1.jar; 赠送原API文档:mybatis-plus-extension-3.5.1-javadoc.jar; 赠送源代码:mybatis-plus-extension-3.5.1-sources.jar; 赠送Maven依赖信息文件:mybatis-plus-...
赠送jar包:mybatis-spring-boot-autoconfigure-1.3.2.jar; 赠送原API文档:mybatis-spring-boot-autoconfigure-1.3.2-javadoc.jar; 赠送源代码:mybatis-spring-boot-autoconfigure-1.3.2-sources.jar; 赠送...
mybatis-generator-config_1_0.dtd文件存在于mybatis-generator-core-1.3.2.jar包中,路径如下org/mybatis/generator/config/xml/mybatis-generator-config_1_0.dtd 可以设置开发工具的dtd配置,配置...
赠送jar包:mybatis-plus-boot-starter-3.1.0.jar; 赠送原API文档:mybatis-plus-boot-starter-3.1.0-javadoc.jar; 赠送源代码:mybatis-plus-boot-starter-3.1.0-sources.jar; 赠送Maven依赖信息文件:mybatis-...
赠送jar包:mybatis-plus-core-3.1.0.jar; 赠送原API文档:mybatis-plus-core-3.1.0-javadoc.jar; 赠送源代码:mybatis-plus-core-3.1.0-sources.jar; 赠送Maven依赖信息文件:mybatis-plus-core-3.1.0.pom; ...
mybatis配置的重要文件包括mybatis-3-config.dtd mybatis-3-mapper.dtd
赠送jar包:mybatis-generator-core-1.3.7.jar; 赠送原API文档:mybatis-generator-core-1.3.7-javadoc.jar; 赠送源代码:mybatis-generator-core-1.3.7-sources.jar; 赠送Maven依赖信息文件:mybatis-generator-...
然后打开eclipse ->Window->prefenrence->XML->XML Catalog->User Specifiled Entreis->Add->Location(此处是你放dtd文件的位置例如:D:\mybatis\mybatis-3-config.dtd)->Key(如果更改config,此处应该是:-//...
赠送jar包:mybatis-spring-2.0.0.jar; 赠送原API文档:mybatis-spring-2.0.0-javadoc.jar; 赠送源代码:mybatis-spring-2.0.0-sources.jar; 赠送Maven依赖信息文件:mybatis-spring-2.0.0.pom; 包含翻译后的API...
mybatis-plus最新代码生成器项目源码 :mybatis-plus-generator.zip mybatis-plus最新代码生成器项目源码 :mybatis-plus-generator.zip mybatis-plus最新代码生成器项目源码 :mybatis-plus-generator.zip ...
赠送jar包:mybatis-plus-annotation-3.5.1.jar; 赠送原API文档:mybatis-plus-annotation-3.5.1-javadoc.jar; 赠送源代码:mybatis-plus-annotation-3.5.1-sources.jar; 赠送Maven依赖信息文件:mybatis-plus-...
开发工具 框架JAR mybatis-spring-1.3.1开发工具 框架JAR mybatis-spring-1.3.1开发工具 框架JAR mybatis-spring-1.3.1开发工具 框架JAR mybatis-spring-1.3.1开发工具 框架JAR mybatis-spring-1.3.1开发工具 框架...
赠送jar包:mybatis-plus-boot-starter-3.5.1.jar; 赠送原API文档:mybatis-plus-boot-starter-3.5.1-javadoc.jar; 赠送源代码:mybatis-plus-boot-starter-3.5.1-sources.jar; 赠送Maven依赖信息文件:mybatis-...