隔离级别概念:一、读未提交(READ-UNCOMMITTED)当事务隔离级别设置为READ-UNCOMMITTED(读未提交)时,在这种状态下,一个会话更新的数据会被其他的会话马上看到,即使该更新的数据尚未被事务所提交(commit)。结论:当一个会话的(session)事务隔离级别被设置为READ-UNCOM..
分类:
数据库 时间:
2014-09-18 16:49:34
阅读次数:
313
需求是几百个文件,命名规则类系下面的文件名:dailydata_20140320.txt通过newLISP合并,首先是自动生成这些文件名,然后用read-file读取内容,再用append-file写入到一个文件中。注意删除上次运行的结果,也要注意有文件不存在的话需要出error.log日志。代码如下:#!/usr/bin/newlisp
(set 'start-date "20140101 0...
分类:
其他好文 时间:
2014-09-18 16:33:34
阅读次数:
202
MapFile是排序后的SequenceFile, 这个排序是由开发者来保证的, 不是内存实现.相当于对key作了一个分块索引, 只针对key.缺点1.文件不支持复写操作,不能向已存在的SequenceFile(MapFile)追加存储记录2.当write流不关闭的时候,没有办法构造read流。也就...
分类:
其他好文 时间:
2014-09-18 13:01:44
阅读次数:
171
1、使用dgmgrl将数据库设置为只读模式:DGMGRL>editdatabasedg_namesetstate=read-only;
ORA-16753Resourceguardcouldnotopenstandbydatabase
Cause:Resourceguardcouldnotopenstandbydatabase.
Action:ChecktheDataGuardconsolelogforfurtherdetails.2、查看dg日志${bdump}..
分类:
其他好文 时间:
2014-09-18 03:10:53
阅读次数:
232
在写python脚本的时候,经常需要调用系统命令,常用的python调用系统命令的方法主要有subprocess.call和os.popen。默认情况下subprocess.call的方法结果是返回值,即1或0,而os.popen则是命令运行的结果,可以用readlines(读取所有行,返回数组)或者read(读读取所有行,返回str..
分类:
编程语言 时间:
2014-09-18 03:09:33
阅读次数:
445
参考:How to read from an Excel file using OLEDB为了使用方便,我做成了工具类(OledbHelp.cs),好以后使用.注:连接字符串中,Provider=xx是从这个连接模仿,主要是考虑是否把第1行当成表头:http://www.connectionstri...
分类:
数据库 时间:
2014-09-17 20:23:02
阅读次数:
315
题目链接1 -- Enter your code here. Read input from STDIN. Print output to STDOUT2 import Data.List3 main = do4 inputdata f (head xs) (length xs)) . g...
分类:
其他好文 时间:
2014-09-17 20:06:42
阅读次数:
254
## CRUD create,read, update,delete ## Operations db.collection.count() db.collection.distinct() db.collection.findOne() db.collection.remove() db.collection.save() db.collection.update() ##Cursor...
分类:
其他好文 时间:
2014-09-17 15:40:22
阅读次数:
155
11.1背景:模拟优化参数optimizer_switch选项mrr(Multi_RangeRead)对查询优化的影响11.2建表语句mysql>showcreatetableorder_line\G;***************************1.row***************************Table:order_lineCreateTable:CREATETABLE`order_line`(`ol_o_id`int(11)N..
分类:
其他好文 时间:
2014-09-17 15:33:13
阅读次数:
338
Over time, Alexey's mail box got littered with too many letters. Some of them are read, while others are unread.
Alexey's mail program can either show a list of all letters or show the content of a s...
分类:
其他好文 时间:
2014-09-17 15:16:42
阅读次数:
248