2013年4月1日

where is the data come from after we drop the table

摘要: When I was reading a oracle document, it said that the select action will not put any locks on the table you are reading. That is different from what I thought before. I understand that if a table were selecting, the session will not put any locks to stop othere sesssion from writing the table. Or I 阅读全文

posted @ 2013-04-01 16:33 kramer 阅读(235) 评论(0) 推荐(0) 编辑

2013年3月28日

Data consistent && transaction && isolation level

摘要: 数据一致性数据一致性是指在并发访问数据库的时候,数据需要保持一致,那么什么样算不一致呢? 看一看反面的例子,就明白了。不一致的情况有三种,脏读,不可重复读和幻影读。假设现在有一个表,如下: 1 SQL> select * from t; 2 3 ID ENAME JOB SAL 4 ---------- ------------------------------ --------------------------- ---------- 5 1... 阅读全文

posted @ 2013-03-28 14:36 kramer 阅读(280) 评论(0) 推荐(0) 编辑

2013年3月22日

Show error issue on oracle

摘要: 1 SQL> @CTODB_EVENT_PKG_EL.sql2 3 Package created.4 5 No errors.6 7 Warning: Package Body created with compilation errors.8 9 No errors.It`s very strange. See the code above. I put a show error behind the package header and package body. The script shows that package body compiled with error. But 阅读全文

posted @ 2013-03-22 17:41 kramer 阅读(317) 评论(0) 推荐(0) 编辑

Who is locking the DB account?

摘要: Sometimes the database account is locket frequently. That is because someone was trying to login to the database with a wrong password. So, you may want to find out the person and tell him/her to use a correct password. Below are the way to accomplish it.Before we start, you need to know you can ena 阅读全文

posted @ 2013-03-22 16:40 kramer 阅读(282) 评论(0) 推荐(0) 编辑

2013年3月18日

(python learn) 8 流程控制

摘要: if 1 #!/usr/bin/python 2 3 my_number=28 4 guess=int( raw_input("please input a number:")) 5 6 if guess==my_number: 7 print "you got it" 8 elif guess<my_number: 9 print "your guess is too small"10 else:11 print "your guess is too big"首先通过 my_number变量来保存28这个数 阅读全文

posted @ 2013-03-18 14:04 kramer 阅读(176) 评论(0) 推荐(0) 编辑

2013年3月14日

(python learn) 7 -- 字典

摘要: python中的字典是用来存储键值对的。也就是存储 key-value这种格式的数据。比如:1 >>> dic1={'name':'kramer','age':26,'gender':'male','tel':8888}2 >>>现在我们就创建了一个字典 dic1,我们可以通过下面的形式使用这个字典。1 >>> dic1['tel']2 8888与列表相比,字典的使用不会显得那么声色,如果是列表,我们只能通过索引来取值,但有可能我 阅读全文

posted @ 2013-03-14 11:32 kramer 阅读(252) 评论(0) 推荐(0) 编辑

2013年3月12日

(python learn) 6 -- 列表

摘要: 列表和元组一样都是序列类型。类似的序列类型还有字符串。那么既然有了元组为什么还要列表呢,因为元组中的元素不可以改变。1 >>> t1=('kramer',27,'male')2 >>> id(t1)3 1828945344804 >>> t1[1]=285 Traceback (most recent call last):6 File "<stdin>", line 1, in ?7 TypeError: object doesn't support item ass 阅读全文

posted @ 2013-03-12 17:25 kramer 阅读(191) 评论(0) 推荐(0) 编辑

2013年3月5日

(python learn) 5 -- 元组

摘要: 首先我们要知道,字符串,元组,还有列表等数据类型在python中都属于序列数据类型。对这种数据类型,有一些统一的函数可用,比如:len() 可以返回长度+可以连接两个序列*可以重复两个序列中的元素in可以判断某个元素是否在序列中max()返回最大元素min()返回最小元素cmp()比较两个序列是否相等下面,我们研究一下元组。元组是一组被逗号隔开的元素。这些元素不可更改。1 >>> 'hi','a','b',82 ('hi', 'a', 'b', 8)比如上面的代码就定义了一段元组, 阅读全文

posted @ 2013-03-05 23:28 kramer 阅读(220) 评论(0) 推荐(0) 编辑

2013年3月3日

(python learn) 4 -- number&& string

摘要: We will look at the number type and string type.NumberThere are int, long , float and complex number in python.Int, which is very simple like below.1 >>> type(1)2 <type 'int'>3 >>> type(888)4 <type 'int'>But some times, we need to store very big int numb 阅读全文

posted @ 2013-03-03 19:45 kramer 阅读(328) 评论(0) 推荐(0) 编辑

(healthy recorder) 治疗第6天

摘要: 2013年3月3日 星期日 今天是治疗第六天。实际治疗4天。前三天基本治疗过程是,熏蒸 (肩背腰)50分钟,中频电疗(肩背腰)15分钟,微波(腰)15分钟,牵引20分钟,手法 30分钟。 没什么明显效果。第四天,熏蒸50分钟,中频电疗15分钟,微波15分钟,牵引20分钟,针刀 (肩背)。第四天的针刀做完后,要休息两天,不能洗澡不能着凉。 似乎有些效果,但是下午去上了约一小时的网,斜方肌 肩膀部位又像以前一样疼了。另外这些天的治疗,腰一直没有改善,左腿不适,坐久了腰背部会发酸,走路久了左胯,腰部位会疼。 阅读全文

posted @ 2013-03-03 17:59 kramer 阅读(160) 评论(0) 推荐(0) 编辑

导航