程序如果长时间不进行数据库操作,那么数据源中的 Connection 很可能已经断开。其原因有可能是防火墙,或者连接的数据库设置的超时时间。这里使用的是 C3P0 连接 oracle 数据库,引起的异常信息为: org.springframework.transaction.TransactionS ...
分类:
数据库 时间:
2016-06-21 15:29:30
阅读次数:
708
在实际的操作中,会经常的遇到批量的操作,使用hibernate将 100条记录插入到数据库的一个很自然的做法可能是这样的 1 Session session = sessionFactory.openSession(); 2 Transaction tx = session.beginTransac ...
分类:
Web程序 时间:
2016-06-20 12:24:40
阅读次数:
207
数据库复习⑩ 2016年6月19日 13:40 Main Transactions 事务 1.Transaction Concept 事务的概念 A transaction is a unit of program execution that accesses and possibly updat ...
分类:
数据库 时间:
2016-06-19 15:34:01
阅读次数:
250
1,Win+R 打开运行窗口,输入 dcomcnfg,打开组件服务窗口 2,在组件服务 catalog下找到 Distributed Transaction Coordinator下的本地DTC 3,打开本地DTC的属性,设置安全tab,选中“网络DTC访问”,勾选“允许远程客户端”,“允许远程管理 ...
分类:
Windows程序 时间:
2016-06-19 00:02:02
阅读次数:
4691
与客户相关 VD01 建立客户 Create customerVD02 更改客户 Change customerVD03 显示客户 Display customerVK11 创建条件 Create ConditionVK12 修改条件 Change ConditionVK13 显示条件 Displa ...
分类:
其他好文 时间:
2016-06-18 15:26:59
阅读次数:
213
环境:[root@vsftpd~]#cat/etc/redhat-releaseCentOSrelease6.6(Final)[root@vsftpd~]#uname-r2.6.32-504.el6.x86_64[root@vsftpd~]#uname-mx86_64安装上传软件包htop-1.0.2.tar.gz到/server/tools/目录下#yuminstall-ygccncurses-devel#cd/server/tools/#tarxfhtop-1.0.2.tar...
分类:
其他好文 时间:
2016-06-16 18:12:58
阅读次数:
208
一、什么是系统平均负载(Load average)? 在Linux系统中,uptime、w、top等命令都会有系统平均负载load average的输出,那么什么是系统平均负载呢?Load Average是CPU的Load,它所包含的信息不是CPU的使用率状况,而是在一段时间内CPU正在处理以及等待... ...
分类:
其他好文 时间:
2016-06-15 23:34:44
阅读次数:
244
1:load Average 1.1:什么是Load?什么是Load Average? Load 就是对计算机干活多少的度量(WikiPedia:the system Load is a measure of the amount of work that a compute system is d... ...
分类:
系统相关 时间:
2016-06-15 22:09:33
阅读次数:
272
Sequence 在当前transaction scope之外产生,当事务回滚时,Sequence number 不会回滚。 1,Create Sequence syntax [ CACHE [<constant> ] | NO CACHE ] Increases performance for a ...
分类:
其他好文 时间:
2016-06-15 20:49:20
阅读次数:
530
废话不多说,直接上代码。 import httplib import urllib import time import json class Transaction(object): def __init__(self): self.custom_timers = {} def run(self) ...
分类:
编程语言 时间:
2016-06-15 18:45:50
阅读次数:
266