2014年6月5日

分区索引

摘要: 分区索引表分为一全局索引二局部索引全局索引和普通建索引的方式无异,而局部索引需要前加local关键字。如全局索引 create index aa on table1(id) ---全局索引局部索引 create index bb on table2(id) local;全局索引可以理解为普通索引局部... 阅读全文

posted @ 2014-06-05 17:27 todayiwillgo 阅读(346) 评论(0) 推荐(0)

统计信息中常见的语句

摘要: 1rows processed --找到了几条记录2recursive calls --递归调用3db block gets4consistent gets --逻辑读 一致性读 3和4都是从内存中读5physical reads --物理读 阅读全文

posted @ 2014-06-05 14:21 todayiwillgo 阅读(134) 评论(0) 推荐(0)

查看段信息的脚本

摘要: select segment_name, partition_name, segment_type, bytes/1024/1024, tablespace_namefrom user_segmentswhere segment_name in('RANGE_PART_TAB... 阅读全文

posted @ 2014-06-05 14:07 todayiwillgo 阅读(129) 评论(0) 推荐(0)

分区表

摘要: 分区表分为四种一范围分区 应用最为广泛二列表分区三组合分区四hash分区范围分区范围分区最常见的是按时间列进行分区drop table aa purge;ctreate table aa (id number,contents varchar2(200))partition by range (de... 阅读全文

posted @ 2014-06-05 10:05 todayiwillgo 阅读(487) 评论(0) 推荐(0)

导航