
索引
wluckdog
这个作者很懒,什么都没留下…
展开
-
索引整理方式测试
以下列举oracle10g下几种常用的在线索引整理方式:(1) alter index rebuild(2) alter index rebuild online(3) alter index coalesce(4) alter index shrink space(5) alter index shrink space compact(6) alter index s转载 2012-06-12 17:07:09 · 889 阅读 · 0 评论 -
alter index
总结:(1)alter index ii storage(next 40)10g的不可以改变索引的存储参数,但是11g开始可以改变索引的部分存储参数,其中INITIAL 和 MINEXTENTS 不可以被修改(2) alter index ii rebuild online tablespace test 可以改变存储参数,改变索引的表空间,减少表空间的碎片,在索引比较大的时候可以用p原创 2013-05-21 15:48:14 · 8089 阅读 · 0 评论 -
unusable index and invisible index 的区别
当你在批量加载数据的时候,想要改变性能或者测试删除索引后的性能,可以使用unusable index 或者是 invisible index那么 unusable index 和invisible index 有什么区别呢unusable index(1)unusable index 是被优化器所忽略,并且不被dml操作维护。但是unusable index 可以改变批量原创 2013-05-21 23:17:38 · 4381 阅读 · 0 评论 -
对索引的监控
1、对索引的监控方法一:SQL> alter index i monitoring usage;索引已更改。SQL> SELECT INDEX_NAME, MONITORING, USED, START_MONITORING, END_MONITORING from v$object_usage;INDEX_NAME MON USE原创 2013-05-23 10:19:18 · 739 阅读 · 0 评论 -
索引的rebuild和rebuild online的区别
create table t1 as select * From emp;insert into t1 select * from t1;create index i_empno on t1(empno);create index i_deptno on t1(deptno);@?\rdbms\admin\utlxplanSQL> explain plan for alter原创 2012-06-12 14:55:31 · 2083 阅读 · 0 评论 -
全文索引
create table t1(id int,name varchar2(10));create index ind_t1 on t1(name);insert into t1 values(1,'Tom');insert into t1 values(1,'Tom Tom');insert into t1 select empno,ename from emp;commit;cre原创 2013-09-29 16:29:36 · 739 阅读 · 0 评论 -
btree和位图索引的对比
1、btree 索引通过建表t1 object_id的值没有重复值,而t2 表的object_id的值重复率很高通过实验在t1,t2表的object_id列建立普通索引,来证明普通索引列比较适合列的重复值比较低的列优点:适合键值重复率较低的字段上使用 那么有个B-tree索引我们就像翻书目录一样,直接定位rowid立刻就找到了我们想要的数据,实质减少了I/O操作就提高速度,原创 2013-09-30 14:57:44 · 1714 阅读 · 0 评论 -
index
Oracle Database provides several indexing schemes that provide complementary performance functionality. These are:B-tree indexes: the default and the most commonB-tree cluster indexes: defin翻译 2012-06-11 15:51:42 · 1003 阅读 · 0 评论