Row Chaining and Migrating(六)
In two circumstances, the data for a row in a table may be too large to fit into a singledata block. the first is case, the row is too large to fit into one data block when it is firstinserted. In this case, Oracle stores the data for the row in a chain of data blocks (oneor more) reserved for that segment.Row chaining most often occurs with large rows such as long ,long raw ,unavoidable.thsi second is a row that originally fit into one data block is updated sothat the overall row length incre
决胜职场的十大习惯
1、养成做好每一件事的习惯最成功最快的方式就是做好每件当前的事情或工作。2、学习的习惯。学历代表过去,只有学习才代表未来。3、养成让别人指使你的习惯创造让别人指使你的理由和条件,就等于创造成功的机会4、写总结计划的习惯。有计划领导别人,没计划被别人领导5、发现问题的习惯发现问题是一种素质,解决问题是一种能力6、承担责任的习惯你有多大成就取决于你有多少责任7、主动汇报工作的习惯在你汇报之前,领导就开始问你,那么你的高度就会瞬间下降50%8、尊时守时的习惯尊时守时体现出一个人对事情的基本态度9、自律的习惯有一次
Availability and Optimization of Free Space in a Data Block(五)
Two types of statements can increase the free space of one or more data blocks:DELETE statements, and UPDATE statements that update existing values to smallervalues.The released space from these types of statements is available for subsequentINSERT statements under the following conditions:■ If the INSERT statement is in the same transaction and subsequent to thestatement that frees space, then the INSERT statement can use the space madeavailable.■ If the INSERT statement is in a separate tran
美国论坛这样评价中国人
中国人不了解他们作为社会个体应该对国家和社会所承担的责任和义务普通中国人通常只关心他们的家庭和亲属,中国的文化是建立在家族血缘关系上而不是建立在一个理性的社会基础之上。中国人只在乎他们直系亲属的福址,对与自己毫不相关的人所遭受的苦难则视而不见毫无疑问,这种以血缘关系为基础的道德观势必导致自私,冷酷。这种自私和冷酷已经成为阻碍中国社会向前发展的最关键因素中国从来就没有成为一个法制社会,因为中国人的思维方式与守法行为格格不入。中国人老想走捷径。他们不明白这样一个事实:即成就来自于与努力工作和牺牲中国
放下玻璃杯
女朋友希望我看的一篇文章,帖出来.一位老师正在给学生讲解如何处理压力。他把一杯水举起来,问大家:“你们估计这杯水会有多重?”学生们的答案从20克到500克不等。“这杯水的重量其实由你举的时间来决定,而与它的实际重量无关。我要是举一分钟,肯定没问题;但要是举一小时,手臂就会酸疼;若举一天,那你们就该叫救护车了。它的实际重量并没有改变,只是我举的时间越长,就会越觉得它沉重。“如果我们始终都肩负担子,总会有熬不住的时候,担子也变得更加沉重。“你只需放下杯子,歇息一会儿后再举起来。”我们一定要不时地将负担放下,
Free Space Management(四)
Free space can be managed automatically or manually. The in-segmentfree/used space is tracked using bitmaps, as opposed to free lists.segment-space management offers the following benefits:■ Ease of use■ Better space utilization, especially for the objects with highly varying row sizes■ Better run-time adjustment to variations in concurrent access■ Better multi-instance behavior in terms of performance/space utilization[@more@]
Data Block Format(三)
The Oracle data block format is similar regardless of whether the data block contains table, index, or clustered data.Headergeneral block information, such as the block address and the type of segment (for example, data or index).Table Directorytable having rows in this block.Row DirectoryAfter the space has been allocated in the row directory of a data block’s overhead, this space is not reclaimed when the row is deleted. Oracle reuses this space only when new rows are inserted in the block.Ov
Overview of Data Blocks(二)
A data block is the smallest unit of data used by a database.In contrast, at the physical, operating system level, all data is stored in bytes. Oracle requests data in multiples of Oracle data blocks, not operating system blocks.you can specify of up to five nonstandard block sizes.The data block sizes should be a multiple of the operating system’s block size within the maximum limit to avoid unnecessary I/O[@more@]
Introduction to Data Blocks, Extents, and Segments(一)
近期将阅读的Oracle10g Concepts中值得注意的地方帖出来,督促自己不断学习进步Introduction to Data Blocks, Extents, and Segments1. Oracle stores data in data blocks (also called logical blocks, Oracle blocks, or pages)2. An extent is a specific number of contiguous data blocks allocated for storing a specific type of information.3. A segment is a set of extents,are stored in the same tablespace.each table's data is stored in its own data segment, while each index's data is stored in its own index seg
10g中查询初始化参数的值有所改变
1) show parameter sga_max_size2) select name,display_value from v$parameter where name = 'sga_max_size';9i则为select name,value from v$parameter where name = 'sga_max_size';可以用select name,value,display_value from v$parameterwhere value!=display_value;来证实[@more@]
查询某个字段的不同值
有时候想知道某字段有几个不同的值需要使用select distinct <column_name> from <table_name>来查询该字段不同值,但是对大表来说就进行了全表扫描,增加了系统的负担;如果这张表分析后(10g自动分析),可以通过如下语句查询:select num_distinct from user_tab_col_statistics where table_name=upper('<table_name>') and column_name=upper('<column_name>')来避免全表扫描[@more@]
需要注意的unix命令使用
今天看了<unix高手的十大习惯>一文 ,发现自己在使用时有些地方存在着"不良的使用模式","不良的使用模式会降低速度,并且通常会导致意外错误",现将其对应好习惯列出来,方便自己"不良的使用模式"得到改正.1 使用mkdir -p建立目录树 mkdir -p project/{lib/ext,bin,src,doc/{html,info,pdf},demo/stat/a}2 使用tar -C 将.tar文件解压缩到任何目录tar xvf -C tmp/a/b/c newarc.tar.gz3 使用grep -c来进行计数 grep -c and tmp/a/longfile.txt4 使用 awk 代替grep 来查找特定字段中的模式 l
使用lc命令
lc命令介绍1 在unix和windows环境下是一个交互式的命令2 输出是根据类型来输出的,通常情况下是根据文件或者是文件夹3 在windows环境下,系统的,隐藏的,和只读文件和文件家是分开显示的lc命令参数介绍-a 显示所有的文件和文件夹(包括以"."命令开始的).-d 只显示文件夹-f 只显示文件-n 隐藏所有输出-1 一行显示一个文件想知道某文件夹下面有什么文件夹,就可以使用lc -deg:C:>lc -dDirectories:Documents and Settings Perl WINDOWSRead-Only Directories:Program Files[@more@]
exp使用to_date
1) where前面要带双引号2) to_date参数需要从单引号变成双音号3) exp支持的userid格式username/userpassword@tnsname , 不支持username@tnsname/userpassword格式eg:exp userid=test/test@ora92 file=t_test.dmp buffer=40768000 tables=(t_test) query='"where time1>=to_date(''20070601'',''yyyymmdd'') and time2<to_date(''20070701'',''yyyymmdd'')"'[@more@]
心
传闻圣人心有七窍,我在想他们的心脏中每一窍装的是什么。心胸豁达,心情愉快,心眼明亮,心态积极,心气平和,心地善良,心悦诚服,... ...恩,如果我装下这些会怎么样?[@more@]
开通博客的原因
其实一直不想去写,原因主要有以下几点1 怕贻笑大方2 怕文本不佳,条理不清3 没有时间...仔细想想,发现以前的想法全错了.写出来,就可以慢慢克服以前的缺点,给自己一个命题,就可以每天进步一点点,可以督促自己不停的学习。其次时间象乳沟一样,挤一挤还是有的。最近发现自己有点浮躁,沉不下心来,希望这里是个开始![@more@]
抗辐射蔬菜&抗污染食物(zt)
抗辐射蔬菜头痛、失眠、心率不齐,手机、微波炉、电脑、电视、空调、电褥子等释放出的电磁波,因为人体抵抗能力差异,会产生不同程度的危害。同时,对于有些人的眼睛可能产生影响,出现视力下降、皮肤病等现象。 大量研究表明,电磁辐射对人体的危害与其导致机体过氧化有关。所以防范电磁辐射,除了避免和电磁波的“亲密接触”外,在饮食上也能对抗电磁辐射对机体的危害。注意微量元素的摄入。微量元素硒具有抗氧化的作用,含硒丰富的食物首推芝麻、麦芽和中药材黄芪,其次是酵母、蛋类、啤酒,海产类有大红虾、龙虾、虎爪鱼、金枪鱼等
生日快乐
本命年生日!祝自己生日快乐,也祝同年同天生的兄弟姐妹们生日快乐![@more@]